forked from sass/libsass
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support colliding CSS filter effects functions
CSS filter effects [0] define several functions (invert, grayscale, opacity, saturation) that collide with the names of built-in Sass functions. Overload these functions with a no-op when the filter effects function signature is discovered. This is compatible with Ruby Sass. For example, calling `invert` with a color will return an inverted color as before: color: invert(sass#333) => color: #cccccc But calling `invert` with a percentage will pass through the function call unharmed. filter: invert(30%) => filter: invert(30%) filter: invert(.03) => filter: invert(.03) Fixes sass#151. [0]: http://www.w3.org/TR/filter-effects/
- Loading branch information
Showing
1 changed file
with
32 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters