Skip to content

Issues with referring to size in PX #679

@HarryC145

Description

@HarryC145

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions