-
Notifications
You must be signed in to change notification settings - Fork 64
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
CSS Nesting #92
Comments
Hi Jonathan, thanks for reporting the issue! I want to fix both issues but I have to confess that I have limited time to dedicate at the moment. I was under the impression that at rules must contain qualified rules (selector + declaration block), but it appears that it may contain instead a declaration as well. |
I'm not entirely sure what you mean with nesting at-rules. In your example I see that |
Relevant documentation is here: https://drafts.csswg.org/css-syntax/#declaration-rule-list |
CSS nesting is now supported by most major browser vendors: https://caniuse.com/?search=CSS%20nesting
|
Great idea, this will definitely be a great way to compress CSS files further and I'll put it on the roadmap when I have time to work on the new CSS parser! |
I’m thrilled to see a repository with tokenization for HTML, CSS, and JS.
I may have found a couple issues.
Since the 2013 edition of the CSS Syntax specification, the handling for nesting at-rules has been defined, so that at-rules can be successfully consumed, even if their contents are only considered a series of component values.
This does not appear to be supported in this project.
In the 2021 edition of the CSS Syntax specification, this support has been expanded to include the
&
nesting selector which consumes qualified rules.This does not appear to be supported in this project.
The text was updated successfully, but these errors were encountered: