Closed
Description
Reproduction link
No response
Bug description
The W3C spec says @media rules can be nested but this plugin craches when it find a nested @media
Actual Behavior
.my {
@media print {
color: red;
}
}
Error: Expected a pseudo-class or pseudo-element.
Expected Behavior
@media print {
.my {
color: red;
}
}
Can you reproduce it with npx @csstools/csstools-cli <plugin-name> minimal-example.css
?
No response
npx
Output
No response
Extra config
No response
What plugin are you experiencing this issue on?
PostCSS Nesting
Plugin version
10
What OS are you experiencing this on?
Linux
Node Version
deno 1.27
Validations
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Would you like to open a PR for this bug?
- I'm willing to open a PR