-
Notifications
You must be signed in to change notification settings - Fork 60
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
Broken sort with min-width: 0
#57
Comments
Don’t output needless (min-width: 0) in media queries. This doesn’t play well with some tools (e.g. hail2u/node-css-mqpacker#57).
`(min-width: 0)` is parsed and picked up correctly, but was inspected as a invalid CSS length whereas 0 is a valid CSS length. MQPacker should special-case `0` (only `0`). This fixed #57.
`(min-width: 0)` is parsed and picked up correctly, but was inspected as a invalid CSS length whereas 0 is a valid CSS length. MQPacker should special-case `0` (only `0`). This fixed #57.
Thanks, |
Thanks for responding to this so promptly! Looking at your fix, though, am I right to conclude that it'll only handle the case of |
This bug only occurs with |
I realize this media query will always match, so it's a bit weird to even have it, but I do (for irrelevant reasons), and it doesn't seem to be sorted correctly.
I believe the issue is that this line checks
!minWidth
, somin-width: 0
is treated as though the min-width isn't specified at all.The text was updated successfully, but these errors were encountered: