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

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

Apologies for the ignorant question, but what goes wrong if a declarative shadow root can "import" styles from anywhere else in the document (including ones serialized inside another [mode=open](https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow#open) shadow root), but those **styles don't wind up in the `adoptedStyleSheets` array**? Are folks modifying these sheets, and expecting those modifications to change everywhere that refers to them? Are folks reading sheets out of `adoptedStyleSheets` and expecting that to be complete? I expect @justinfagnani and @EisenbergEffect are correct that this is critical; I'd just like to understand better what's relying on it.

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

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

Received on Monday, 28 July 2025 22:00:09 UTC