-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Broken order of operations when using less variables in calculation and not using less to evaluate it #2602
Comments
Numeric expressions that can not be further reduced should probably have their output CSS value changed to add enclosing braces. Solves the problem completely, I think. |
Yes, it would make sense to document but we don't have such "all that thousands common pitfalls" section there. Speaking of the code itself: with // -sm:on
@a: 1 + 2; // this has nothing to do with arithmetics at all!
@b: (1 + 2); // now this is an arithmetic expression Also in regards of Assuming it's not really a compiler issue but more like a documentation suggestion I wonder if this should be moved to |
The only purpose of |
OK, before comments start to pile up I'm closing this in favour of #1880 (please do not hesitate to put any ideas there). And for docs suggestions please use |
|
Merged to #1880. |
@seven-phases-max |
Demo:
Test:
I understand that this is defined behaviour and not a bug, however it seems a little unintuitive at first so should probably be in the main docs.
The text was updated successfully, but these errors were encountered: