Re: [csswg-drafts] [css-cascade] [css-nesting] Figure out whether we're fine with "shifting up" bare declarations after rules (#8738)

@emilio Either `CSSGroupingRule.cssRules` returns a list of `CSSRule` + `CSSStyleDeclaration` or we use a new `CSSGroupingRule.elements` or something else.

It's really the same idea, except that we use `CSSStyleDeclaration` instead of a potential `@nest`. But it has the advantage of not being explicitly writeable by a user (you can't write distinct consecutive CSSStyleDeclaration blocks in CSS - but you can if you really want with CSSOM).

(For the example above, merging the two `CSSStyleDeclaration` would makes more sense indeed)

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


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

Received on Tuesday, 16 April 2024 20:34:11 UTC