Re: [csswg-drafts] [css-nesting-1] Can we relax the syntax further? (#7961)

Yes, this was noted as the (afaict) only non-editorial change not directly related to Nesting itself in <https://github.com/w3c/csswg-drafts/issues/8834>.

I agree that this is almost certainly a good change; it's definitely preferable that `@media` and related rules parse the same whether they're nested or not. This also makes the spec architecture in general a little better, because it means I no longer have to make the core parsing behavior of blocks depend on what kind of block it is.

At the moment I still have top-level parsing preserve the old behavior, because I suspect the compat impact is larger, but I'd be willing to change (letting the top-level context parse declarations and just throw them away) if someone's willing to put in the legwork to determine compat.

(If we could continue discussion on this topic in #8834 that would be great.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7961#issuecomment-1550085433 using your GitHub account


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

Received on Tuesday, 16 May 2023 17:30:08 UTC