-
-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Description
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).
tsvetomir
Metadata
Metadata
Assignees
Labels
No labels