-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Incorrect reduction of nested expression #38
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reducing the expression
calc( (1em - calc( 10px + 1em)) / 2)
reduces incorrectly tocalc(1em - 5px)
(the correct one should be-5px
).A workaround is to add another operation, however this is far from ideal:
calc( (1em + (-1 * calc( 10px + 1em))) / 2)
.I know the expressions look weird, but these actually are real-world examples from SASS-generated CSS (the inner
calc
expression is stored in a variable).The text was updated successfully, but these errors were encountered: