-
Notifications
You must be signed in to change notification settings - Fork 364
Why negative sign before a variable inside round function is a syntax error #2523
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
Comments
There are three overlapping things going on here:
Since global Sass functions are deprecated anyway, the best solution here is probably to add |
This was previously checking whether *either* operator was calculation-safe, when in fact it should check that *both* are. Closes #2523
This was previously checking whether *either* operator was calculation-safe, when in fact it should check that *both* are. Closes #2523
The fix has been released in Sass 1.85.1. You'll notice that your playground link is now working as intended. |
Thank you. I agree that we should use sass math to clarify, and we've done that. |
I'm migrating node-sass to dart-sass, this code works in node-sass, but got a syntax error in dart-sass.
https://sass-lang.com/playground/#eJwzNNRLTEpWqOZSUFApLiwqsVIw1DMxtAZxUzJzrRSMDQoqQLyS/AIrhaL80rwUDV2QjII+RL2mNVctAGRnEoU=
After looking through the official docs, I found that in the early version, the round is always parsed as a sass function
see docs: https://sass-lang.com/documentation/values/calculations/#round
But I look through the docs of variables and operators, I still don't know why
-$dim / $sqrt
inside round can't be compiled toround(-30px / 1.41)
The text was updated successfully, but these errors were encountered: