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
Rewritten with a jison parser for more accurate value parsing.
Breaking: reduce-css-calc will now throw when trying to multiply or divide
by the same unit (e.g. calc(200px * 20px)), and also when trying to divide
by zero.
Added: Better handling of zero values (e.g. calc(100vw / 2 - 6px + 0px)
becomes calc(100vw / 2 - 6px)).
Added: Better handling of mixed time values (e.g. calc(1s - 50ms)
becomes 0.95s).
Added: Inner parentheses calculation to simplify complex expressions (e.g. calc(14px + 6 * ((100vw - 320px) / 448)) becomes calc(9.71px + 1.34vw)
with precision set to 2).
Fixed: security issue due to the usage of eval().
This is to avoid an arbitrary code execution.
Now operations are resolved using math-expression-evaluator