- From: Eddy Löwen <notifications@github.com>
- Date: Tue, 29 Aug 2023 08:07:17 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 29 August 2023 15:07:24 UTC
I'm also very much interested in being able for global styles to leak into ShadowDOM. My prefered way would be via option/attribute for the attachShadow() function. Being able to (automatically) adopt all global styles would also be a possible solution. If I may add my two cents in: In the last +20 years of developing for the web I have only once actually needed real style encapsulation. In all the other cases (99.9999999% or something) we are building UI elements (eg. for client websites) with TailwindCSS or Bootstrap or something else. And ShadowDOM makes it really hard if not almost impossible to work that way. The only thing we do need ShadowDOM for is slots and composability. If we could have slots in light DOM, we would never use shadow DOM. If we could have global styling in shadow DOM we would never use light DOM. But we decided to use light DOM by default and only to opt-in to shadow DOM when we absolutely need slots. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/909#issuecomment-1697628764 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/909/1697628764@github.com>
Received on Tuesday, 29 August 2023 15:07:24 UTC