We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CSSO should not remove px length unit for zero-values in min(), max() and clamp() CSS functions.
The following minifies the 0px value to 0, which causes an invalid property value error in all the browsers I tested (Chrome, Firefox and Safari):
margin-left: max(0px, (100% - 10rem)); // works margin-left: max(0, (100% - 10rem)); // invalid property value
As a workaround one can simply write 0% instead of 0px, which won't get minified to 0.
0%
0px
0
The text was updated successfully, but these errors were encountered:
Looks like it's easy to fix, we need check against a list of functions here
Sorry, something went wrong.
eaeeeee
No branches or pull requests
CSSO should not remove px length unit for zero-values in min(), max() and clamp() CSS functions.
The following minifies the 0px value to 0, which causes an invalid property value error in all the browsers I tested (Chrome, Firefox and Safari):
As a workaround one can simply write
0%
instead of0px
, which won't get minified to0
.The text was updated successfully, but these errors were encountered: