Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with referring to size in PX #679

Open
HarryC145 opened this issue Aug 10, 2020 · 1 comment
Open

Issues with referring to size in PX #679

HarryC145 opened this issue Aug 10, 2020 · 1 comment

Comments

@HarryC145
Copy link

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.

@glensc
Copy link
Collaborator

glensc commented Aug 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants