W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

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

From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
Date: Thu, 26 Nov 2020 23:12:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-734504115-1606432339-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC