Re: [csswg-drafts] [css-nesting-1] Relaxed nesting and var() (#9317)

> Does this imply that now CSS pre-processors will now have to recognize / understand every property's grammar / micro-syntax in order to understand how to parse if something is a declaration or not?

No. In fact, the latest changes to handling {} in property values means the decl-vs-rule distinction is entirely clear from the generic syntax. Knowledge of properties and their grammars just lets you parse more *efficiently* (you can early-exit faster in most cases), but it won't change *how* you parse. (This previously wasn't true in some corner cases.)

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


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

Received on Friday, 20 October 2023 19:08:07 UTC