Re: [csswg-drafts] [css-nesting-1] Syntax Invites Errors (#7834)

@Loirooriol The difference though is that you wouldn’t nest an `else` within the `if` – it is a sibling to the `if`, so it makes sense to keep it like that _(also see: any other programming language)_.

For nesting rules in rules, the logical thing to do, is to actually nest it syntactically. I mean, by making them siblings, CSS _(as a language)_ would make a fool out of itself tbh – I can already see the 🤡-memes incoming.

And as Tab pointed out, we already use nesting a lot: nested at-rules, rules nested in at-rules _(media queries, layers, scope, …)_, etc.

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


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

Received on Friday, 14 October 2022 22:16:52 UTC