Re: [w3ctag/design-reviews] Declarative CSS Modules and Declarative Shadow DOM `adoptedstylesheets` attribute (Issue #1000)

KurtCattiSchmidt left a comment (w3ctag/design-reviews#1000)

@sorvell 

We definitely don't want to back ourselves into a corner with `shadowrootadoptedstylesheets` for non-constructed stylesheets. I can think of several ways this could be handled, the most natural being a fragment identifier for in-document module/element references. Since `shadowrootadoptedstylesheets` is built on module script importing, any solution for non-constructed stylesheets should also work with importing via script import. This can be addressed separately with a generic way to add element references to the module map, which would automatically work for `shadowrootadoptedstylesheets`.

Re: `@import` - it seems like we need to settle on the `@import` behavior for style modules before the situation you suggested works though, right? Have you tested it in Firefox with `lift-adoptedstylesheets-restriction` enabled? 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1000#issuecomment-3947926194
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1000/3947926194@github.com>

Received on Monday, 23 February 2026 23:30:27 UTC