Re: [WICG/webcomponents] "open-stylable" Shadow Roots (#909)

> The original idea (this.attachShadow({mode: 'open-stylable'});) would cause FOUC. 

Why is that necessarily the case? This is a script necessary for rendering. Loading such a script after rendering will casuse FOUC, loading it before will not.

This would also work with declarative shadow DOM which does not require script and is therefore not likely to FOUC.

```html
<div>
  <template shadowrootmode="open-stylable">...</template>
</div>
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/909#issuecomment-1997825663
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/909/1997825663@github.com>

Received on Thursday, 14 March 2024 16:15:47 UTC