Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-webkit-filter saturate() Misinterpreted as Sass Function #290

Closed
bdkjones opened this issue Feb 14, 2014 · 2 comments
Closed

-webkit-filter saturate() Misinterpreted as Sass Function #290

bdkjones opened this issue Feb 14, 2014 · 2 comments

Comments

@bdkjones
Copy link

In my scss file I have this:

@-webkit-keyframes pulse {
    0% { -webkit-filter: saturate(1); }
    50% { -webkit-filter: saturate(1.8); }
    100% { -webkit-filter: saturate(1); }
}

When I compile this file with libsass, it throws the following error:

error: required parameter $amount is missing in call to function saturate

Sass DOES have a function called saturate that takes two parameters: a color and an amount.

But in this case, saturate() is NOT a sass function; it's a standard webkit-filter. Libsass is mistaking this for a sass function when it should not. Ruby Sass compiles the above just fine and recognizes that saturate() is not a sass function in this case.

@bdkjones
Copy link
Author

Until this is fixed, the following serves as a hacky workaround:

@-webkit-keyframes pulse {
    0% { -webkit-filter: unquote("saturate(1)"); }
    50% { -webkit-filter: unquote("saturate(1.8)"); }
    100% { -webkit-filter: unquote("saturate(1)"); }
}

@akhleung
Copy link

Looks like a dup of #151.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants