[csswg-drafts] [css-nesting] keeping track of what can and can not be nested (#9114)

romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-nesting] keeping track of what can and can not be nested ==
Nesting is a high maintenance feature for tooling (transpilers, linters, ...) and code editors.

With each new at-rule that can be nested these tools need to be updated to specifically allow both declarations and style rules.

This is different from before where allowing only style rules was a sane default for unknown at-rules.

It would be helpful if there was an authoritative and exhaustive list of all at-rules that are allowed in nesting so that maintainers do not have to read every single specification to gather the complete list.

example : 
`css-transitions-2` introduces `@starting-style` which can be nested : https://drafts.csswg.org/css-transitions-2/#example-8d9992e9

----

I think it would even be reasonable if only `css-nesting` defines which at-rules can be nested.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9114 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 25 July 2023 10:15:51 UTC