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

> > A solution like `shadowRoot.adoptedStyleSheets = [...document.styleSheets]`
> 
> The main problem I see with this is that it's imperative and one-time. It would require machinery to update components when document styles change, and I'm not sure if component vendors can guarantee or make the requirement that the important stylesheets in question load before the component code does.

As a component developer who's integrating with third-party libraries for various things, we've run into this issue over the past couple of years. We cobble things together to get it working, but sometimes we don't have a lot of control over the timing of when 3rd-party styles are added to the document. It's caused us a lot of headaches.

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

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

Received on Wednesday, 21 September 2022 18:47:52 UTC