-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
🐛 Parser fails with "Expected a compound selector" due to @media query #3091
🐛 Parser fails with "Expected a compound selector" due to @media query #3091
Comments
Hi, Could you please help me understand why this CSS is considered valid? According to the specification, a media rule block can only contain rules. https://drafts.csswg.org/css-syntax-3/#typedef-rule-list
|
Ah, okey, I got it. UPD: need to check others conditional at rules. https://drafts.csswg.org/css-nesting-1/#conditionals |
Yeah it's part of recent spec |
Environment information
What happened?
Code Sandbox
Expected result
This is valid CSS, the parser should not fail
Code of Conduct
The text was updated successfully, but these errors were encountered: