-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
[Bug] : broken declarations due to unitless 0 inside max()
#900
Comments
This has been fixed here #894 Let me know if there is anything specific you are looking for ! |
@anikethsaha still not published? |
We are still looking for few bugs to fixed and then we will release a major. In the meantime, use |
Let's close |
Missed this back in April but I still wanted to thank you all for the fix ❤️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
cssnano
is messing with 0-like values insidemax()
(most likelymin()
andclamp()
too).To Reproduce
Steps to reproduce the behavior:
Expected behavior
.invalid_pb-0-safe
: invalid because it contains unitless values. Can be dropped.valid_broken_1_pb-0-safe
: valid because it doesn't contain unitless values. Should be kept untouched.valid_broken_2_pb-0-safe
: valid because it doesn't contain unitless values. Should be kept although it might be better to compute and keep as0px
.valid_working_pb-0-safe
: valid and currently the only way to prevent cssnano from messing with it (?). Should be kept as is (already working, no need to change anything for this one)Screenshots
If applicable, add screenshots to help explain your problem. (from cssnano-playground)
Desktop (please complete the following information):
Additional context
Revelant links to the spec:
Encountered the issue when testing for a patch for this other project here: desaintflorent/tailwindcss-padding-safe#1
The text was updated successfully, but these errors were encountered: