CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.
CSS variables default values shouldn't have their units removed because they might be used in calc expressions.
CSS calc is very sensitive to units and quite often if the units are not specified, the whole expression becomes invalid.
Seems like this is fixed.
I get the following output:
html{--admin-bar-fixed:var(--wp-admin--admin-bar--height, 0px);scroll-padding:calc(var(--admin-bar-fixed) + 60px) 0 0 0}
CSS variables default values shouldn't have their units removed because they might be used in
calc
expressions. CSScalc
is very sensitive to units and quite often if the units are not specified, the whole expression becomes invalid.Input:
Output (calc becomes invalid because it's now trying to
0 + 60px
):Expected output (calc is valid
0px + 60px
):