- From: Wii <notifications@github.com>
- Date: Tue, 19 Mar 2024 09:08:51 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 19 March 2024 16:08:55 UTC
> then you could use the styles in different contexts (i.e. in the document and in shadow roots) Could this be done using a "magic" selector, like, say `@shadow (:root, my-document)` to include the light-dom? Or are there other cases where this wouldn't work but `@scope` would? I personally like the idea of using `@scope`, but I'm worried that it might be a nightmare to figure out the specifics of how that would use, specially if the shadow-root isn't part of the scope selector (so if it appears *inside* the scope using some special selector) Maybe something like `@scope (:root, my-component::shadowroot)` and define `::shadowroot` to only work inside `@scope` selectors (for now) would be a good compromise, where the potential for weird cases is smaller but there's still more flexibility than a new `@`-Rule. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1053#issuecomment-2007587470 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1053/2007587470@github.com>
Received on Tuesday, 19 March 2024 16:08:55 UTC