Skip to content
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

Single-line declarations fail #8

Open
wiremine opened this issue May 18, 2011 · 3 comments
Open

Single-line declarations fail #8

wiremine opened this issue May 18, 2011 · 3 comments
Labels

Comments

@wiremine
Copy link

The parser seems to bail on single-line declarations

This causes a problem: body { line-height: 1 }

While this is valid: body { line-height: 1; }

@lericson
Copy link
Member

This is invalid CSS syntax.

@wiremine
Copy link
Author

You might want to double-check that: the above CSS validates as correct. If nothing else, you might want to document that your parser is stricter than the W3C's validator.

@lericson
Copy link
Member

I did check afterwards, sorry! I might've been a little too quick. It's possible to emit a Declaration event in spritecss.css.parser on line 489 (presently there is a raise there explicitly for this case; it complicates the parser a lot.)

@lericson lericson reopened this May 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants