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

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

@jakearchibald Our [closing comment](https://github.com/w3ctag/design-reviews/issues/1000#issuecomment-3254588565) included

<blockquote>

We have a list of details that we think the relevant working groups should keep paying attention to as this design gets fleshed out into a final specification:
* ...
* Whether `shadowrootadoptedstylesheets` should be able to adopt a non-inline stylesheet, either via: ... or directly via
   ```html
   <template shadowrootmode="open" shadowrootadoptedstylesheets="./styles.css">
   ```

   "./styles.css" may still be pending at the time that a shadow tree is created from the <template>, which creates a risk of FOUC. ...
* This also re-allows writing <style type="module" specifier="./styles.css">, which [we previously discouraged](https://github.com/w3ctag/design-reviews/issues/1000#issuecomment-3162121691), but we now think it's ok as long as it's clear that this is defining a specifier the way importmaps already allow, and not trying to change what fetch('./styles.css') or window.location='./styles.css' might do.

</blockquote>

THIS IS THE END OF THE QUOTE, BUT GITHUB IS CONFUSED.

So ... I think I'd be uncomfortable if `shadowrootadoptedstylesheets="./styles.css"` was simply ignored when it hasn't already been fetched, but I'd be more comfortable if it treats `"./styles.css"` as a specifier that can be overridden by an importmap.

If you'd like the new TAG to focus on this part of the question, I think https://github.com/w3ctag/design-reviews/issues/new?template=025-question.md is a good way to get it onto our agenda, rather than having a sub-discussion that'll get lost inside this issue. I haven't been following the development, so it'll be good to get pointers to the current design and the rationale and arguments on both sides of this detail.

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

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

Received on Wednesday, 11 February 2026 22:02:05 UTC