[whatwg/dom] Clarification for <link> behavior in Declarative Shadow DOM (Issue #1187)

Hi :),

I'm playing with Declarative shadow dom and found that, if a <link> stylesheet is loaded inside a declarative shadow DOM template, the rendering is blocked. Safari (that also implement declarative shadow DOM) however does not block rendering, which prevents a FOUC.

I have been unable to find any note in the specification on which behavior is correct. It would be nice for the stylesheet to be blocking. For now, the only way to avoid the FOUC is to also load the stylesheet at the global scope, but the issue with this approach is that it leaks the style to the main document, which is indesirable.

Thanks.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1187
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1187@github.com>

Received on Wednesday, 19 April 2023 04:02:58 UTC