Re: [WICG/webcomponents] [open-stylable] Collection of user stories (Issue #1052)

I don't understand the relationship of declarative shadow DOM to the discussion here.

As an implementation detail, not a user story, any new mode or option to `attachShadow()` would be available as an attribute on the DSD template. Other than that, shadow roots created imperatively and declaratively are basically the same. Open-stylable would obviously be available on both.

Users of a component being able to provide their own shadow root to a custom element is, honestly, a pretty niche use of shadow DOM. i know of no components written this way and I wouldn't want to have to resort to this - which would interfere with the component having it's own shadow root - as a way of theming components. We should be able to do better.

But also... theming is different from open-stylable. Open stylable is a proposal to solve a problem affecting components migrating from light DOM to shadow DOM. There are still lots of other problems around theming that are better solved, IMO, with specific theming APIs that don't require completely opening up a shadow root to styles, and work with ::part().

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

Message ID: <WICG/webcomponents/issues/1052/2008393434@github.com>

Received on Wednesday, 20 March 2024 00:24:39 UTC