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

The bottom line is that the only restrictions we face are those that can't be solved by some form of lookahead. The actual lookahead algorithm *could* be specified as 'always run lookahead on everything inside a declaration until the terminating `;` or `{}` and see if it's a property or a rule'. Everything specified above is an optimization showing situations where we can short-circuit the logic. As the language evolves, we just lose some of the optimizations, which are really implementation details. So you don't have to specify every possibility today (tho is doesn't hurt to have a good start).

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


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

Received on Friday, 20 January 2023 00:05:55 UTC