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

The benefit of this, btw, is that the "parsing switch" becomes *almost* automatic as soon as you start writing rules. The sole exception is if your first rule's selector starts with a tagname; that will require the `@nest;` explicit switch. In all other cases you can simply pop rules in and not worry about it.

(And to help fix the potential author confusion for this one case, devtools *can* rely on arbitrary lookahead to tell whether something that's parsing as a random unknown property actually looks like a rule, and flag that as a potential error.)

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


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

Received on Thursday, 6 October 2022 20:55:49 UTC