minify icon indicating copy to clipboard operation
minify copied to clipboard

Issues with referring to size in PX

Open HarryC145 opened this issue 4 years ago • 1 comments

When handling a calc() function in CSS, Minify appears to be stripping the unit of measurement.

This means that: h1 { font-size: calc(0px / 2); }

is becoming:

h1{font-size:calc(0/2)}

Which generates a division by zero error, because it's looking at it as a number and not a measurement.

HarryC145 avatar Aug 10 '20 16:08 HarryC145

0/2 is division of zero, not division by zero :)

glensc avatar Aug 10 '20 18:08 glensc