-
Notifications
You must be signed in to change notification settings - Fork 358
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
First-class calc and unary operator #1887
Comments
This is an interesting issue. Our recommendation generation logic currently assumes that any SassScript expression is drop-in compatible in a I think we should probably lean towards consistency with plain CSS here, given that we already restrict the use of other SassScript arithmetic features in |
Thanks for clarifying. May I ask which other arithmetic features are restricted in |
Sass's calculation support covers all the standard calculation features defined in Values and Units 3, as well as the ability to use Sass variables and Sass functions. The only expression-level syntax it doesn't include (that would be meaningful in a calculation context) is unary operations and the |
All clear, thank you. |
Hi, as slash as division is deprecated by now, I’d like to follow the first-class
calc()
recommendation:The negation produces an error though – is this expected?
I’m using sass 1.58.1.
The text was updated successfully, but these errors were encountered: