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
Would you like to open a PR for this bug?