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

> Given the current proposed standard of "& or @nest before every nested CSS rule" , how would those nested rules show up in the OM?

As CSSStyleRule objects in the `.childRules` property of the parent rule.

I'm not sure you understood my objection, tho - currently, all at-rules show up in the CSSOM as rule objects (save for `@charset`, which has some very bizarre behavior due to both legacy constraints and the way it works in general; it's not actually "part of CSS syntax").

It sounds like you're saying, tho, that `@nestStart` and `@nestEnd` aren't at-rules at all, but rather some new type of "parsing directive" that doesn't reflect in the OM, but just controls how the parser works. That would be a brand-new thing for CSS.

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


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

Received on Thursday, 11 November 2021 22:21:50 UTC