-
Notifications
You must be signed in to change notification settings - Fork 1
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
Shortening 0(unit) to 0 breaks declarations in some cases #127
Comments
this is perfectly valid, according to https://developer.mozilla.org/en-US/docs/Web/CSS/length#syntax Specifying the length unit is optional if the number is 0 |
"After a zero length, the unit identifier is optional." https://www.w3.org/TR/CSS22/syndata.html#length-units |
Here is Mozilla docs:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Types Quantities such as |
this seems like a bug to me. works perfectly fine in firefox but not in chrome based browsers |
It's not a Chrome bug. I tested it in Firefox too on windows. |
you are right :) |
Input CSS:
Code:
Output CSS:
border
andpadding
are valid, whiletransition
is not. It doesn't work in browsers and doesn't pass W3 Validator.From what I can see
transition
properties liketransition-duration
andtransition-delay
always require unit to be present, even if the value is 0. Not sure if there are other properties like this.The text was updated successfully, but these errors were encountered: