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

@LeaVerou mentioned that @FremyCompany's proposal would mean the CSSOM and syntax would diverge, since the rules would be nested inside the style rule representation but be in a separate rule... but I think it makes sense to think of it not as a separate rule, but as giving a style rule an optional second block.

Conceptually, style rules would now have three parts:
- a selector
- a declaration block
- a style rule block (optional)

Using bare braces makes this association between the selector and the second block clearer than using `@nest`; I think it's reasonably consistent with the desired CSSOM structure.

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


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

Received on Tuesday, 18 October 2022 16:51:28 UTC