-
Notifications
You must be signed in to change notification settings - Fork 146
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
fixed parsing of line-height in font shorthand #17
Conversation
@GaryJones My commit also handles the border-radius case but the counter-argument will be the same as with issue #12: While the input is accepted and the output looks the same, the parsed structure is counter-intuitive in that the |
Representing |
It not only seems incorrect, it is incorrect. But there’s always a trade-off. I’ve always been proud of the way the CSSParser handles all possible properties well enough without having to make an exception on a single property. This also makes for a quite future-proof parser as long as new specifications adhere to existing markup (more or less the only change for this parser to support all of CSS 3 instead of just 2.1 is the addition of the |
I’ve had a little time to think about your proposed changes and now I’ve come to the conclusion that they’re actually making a lot of sense. I’ve added the CSSParser could implement a method The only downside of this would be breaking backwards-compatibility for clients who expect to get a doubly-nested array on |
I'm currently working on implementing this. |
fixes #16