You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reducing the expression calc( (1em - calc( 10px + 1em)) / 2) reduces incorrectly to calc(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:
gyoshev
added a commit
to gyoshev/reduce-css-calc
that referenced
this issue
Oct 12, 2017
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: