-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Should parsing dimension values allow decimals with no digits before '.'? #4726
Comments
Perhaps we should fix this together with #4720. |
Works for me. |
Hmm. I just retested this again, and it looks like Chrome does not allow ".5"? Safari does, though. Given that, I'm not sure we should make this change... |
Oh yeah, I wonder how I missed that. And it's the same on stable so it's not like this was changed overnight. Let's not adopt this part and file a bug against Safari instead. |
Closing this as WONTFIX. |
Per https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#rules-for-parsing-dimension-values something like:
should be a parse error at step 7. Both Chrome and Safari allow it, though.
@annevk
The text was updated successfully, but these errors were encountered: