-
Notifications
You must be signed in to change notification settings - Fork 97
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
Allow using the CSS min and max calculations and the CSS filter functions #566
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, we could just not lint those for now. 👍
@stof could you please also add unit tests for this change? |
The Sass functions should indeed be migrated to the sass:math module. But min() and max() can also be the CSS functions (and with first-class calc in Sass, it will parse it as a calculation if possible).
The Sass function shadows a CSS function. The global name should still be allowed when using the CSS function. A more complete change might be to allow only global usages that pass a number as the only argument, but this is more complex to implement (especially when the argument comes from a Sass variable that might be a number or no).
@kristerkari done. and I also solved the case of |
@stof looks like some unit tests are failing |
@kristerkari fixed |
Thanks for the contribution @stof �! |
The Sass functions should indeed be migrated to the sass:math module. But min() and max() can also be the CSS functions (and with first-class calc in Sass, it will parse it as a calculation if possible).
Closes #560
Closes #562
Closes #486