Re: [csswg-drafts] [css-nesting] Syntax suggestion (#4748)

Just brainstorming here: What if instead of the curly braces, we *prepend* the list of nested rules with something? E.g. `@nested;`. That would solve the problem of the extra nesting level. 

Alternate idea: What if only the first rule needs to start with `&`, then we can just assume the rest are selectors and not properties. Then, if anyone wants to handle this generically (e.g. when migrating from a preprocessor), only 3 characters need to be prepended to the list of nested rules: `&{}`.

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


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

Received on Wednesday, 29 September 2021 19:18:57 UTC