W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

Re: [csswg-drafts] [css-cascade] How do Cascade Layers interact with Shadow DOM (#4984)

From: Miriam Suzanne via GitHub <sysbot+gh@w3.org>
Date: Tue, 05 Jan 2021 20:48:37 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-754890182-1609879716-sysbot+gh@w3.org>
The current proposal in [Cascade 5](https://drafts.csswg.org/css-cascade-5/#cascade-layering) Editor's Draft is that Layers are resolved after Encapsulation Context (roughly the same as "a new specificity category").

Even if that resolves the issue above, it still leaves open a question about global and shadow-scoped layers using the same name: 

- Are those the "same" layer in terms of layer-ordering? Can outer stylesheets re-order the layers of a shdow-DOM element? (I think this is probably not a good idea by default)
- Are there use-cases for accessing a global layer from shadow-scoped styles, or vice versa? Would we need a syntax for that?

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 5 January 2021 20:48:40 UTC

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