Re: [csswg-drafts] [cssom] [css-conditional] Extend CSSStyleDeclaration to allow for nested at-rules (#5172)

Thanks for opening this thread, @LeaVerou. I have not found another thread. I think this issue can address [Issue #1 from the specification](https://drafts.csswg.org/css-nesting/#cssom):

> **ISSUE 1**
> 1. Add an interface for the `@nest` rule.
> 2. Tie into the general work needed to let rules be nested into style rules.

As @tabatkins pointed out, at-rules are already allowed syntactically, as part of the algorithm to [consume a list of **declarations**](https://drafts.csswg.org/css-syntax/#consume-list-of-declarations). Does this algorithm mean that **at-rules** (and soon **nesting-rules**) should be considered kinds of **declarations**? Knowing how to refer to these things will help me contribute ideas for the interface.

Are there existing ideas for how or where these nesting-rules will fit into the existing [CSS Object Model](https://drafts.csswg.org/cssom/#css-rules)?

Should the CSSOM interface for nesting rules be addressed as part of the resolution for #5649 to “_resolve sep interfaces for declarations that declare different things_”? (Perhaps this goes back to whether these nesting rules are declarations.)

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


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

Received on Thursday, 26 November 2020 23:12:22 UTC