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
I use postcss-calc in cssnano and calc(50% - 50vw + (100vw - 100vw) / 2 + 1em) gets optimized to calc(50% - 50vw + 0 / 2 + 1em). Unfortunately, the unit after 0 is missing and the browser does not calculate the calc()statement.
calc(50% - 50vw + 0vw / 2 + 1em) would be the correct optimization.
Or even better: calc(50% - 50vw + 1em)
0 vs 0+ unit.
(If you wonder why I calculate 100vw - 100vw: it’s been generated by a Sass mixin and in most cases it makes more sense.)
The text was updated successfully, but these errors were encountered:
I use postcss-calc in cssnano and
calc(50% - 50vw + (100vw - 100vw) / 2 + 1em)
gets optimized tocalc(50% - 50vw + 0 / 2 + 1em)
. Unfortunately, the unit after0
is missing and the browser does not calculate thecalc()
statement.calc(50% - 50vw + 0vw / 2 + 1em)
would be the correct optimization.Or even better:
calc(50% - 50vw + 1em)
0
vs0
+ unit.(If you wonder why I calculate
100vw - 100vw
: it’s been generated by a Sass mixin and in most cases it makes more sense.)The text was updated successfully, but these errors were encountered: