reduce-css-calc
Advanced tools
Changelog
2.0.3 - 2017-05-09
10.px
).Changelog
2.0.1 - 2017-05-08
calc(100% - calc(50px - 25px))
.calc(var(--mouseX) * 1px)
.Changelog
2.0.0 - 2017-05-08
calc(200px * 20px)
), and also when trying to divide
by zero.calc(100vw / 2 - 6px + 0px)
becomes calc(100vw / 2 - 6px)
).calc(1s - 50ms)
becomes 0.95s
).calc(14px + 6 * ((100vw - 320px) / 448))
becomes calc(9.71px + 1.34vw)
with precision set to 2
).calc(1px + 1)
does not evaluate to 2px
.(#22 - @andyjansson)
Changelog
1.2.7 - 2016-08-22
Changelog
1.2.6 - 2016-08-22
Changelog
1.2.5 - 2016-08-22
eval()
.
This is to avoid an arbitrary code execution.
Now operations are resolved using
math-expression-evaluator