Re: [WICG/webcomponents] Web components should be able to easily adapt to the host page while maintaining enapsulation (Issue #986)

At work we just have a snippet that ends up being copied into nearly every web project that essentially just loops over `document.stylesheets` and `cloneNode()`s them into the elements shadow-dom. It's by far the more common use-case for us to want the shadow-dom to encapsulate behaviour but not styles. Cases where a custom element is so visually unique that it needs its own complete styling are very rare in practice.

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

Message ID: <WICG/webcomponents/issues/986/1446918219@github.com>

Received on Monday, 27 February 2023 19:19:41 UTC