Re: [WICG/webcomponents] Interaction between imperative slotting and declarative shadow DOM (Issue #967)

> 
> I’m also curious about the use case. Mixing imperative slot assignment with declarative shadow dom, on its face, sounds at least a little odd. If tooling is doing the SSR work, perhaps the generated HTML can just use normal declarative slot assignment? I.e. assign values to the `<slot name=foo>` and `<div id=light-child slot=foo>` to slot in the correct content?

The primary use case here would be SSR of imperative slot assignment, particularly those that re-order nodes. Since slot assignment mode is fixed per shadow root, imperative slotting would be unusable with SSR, which would limit the use scenarios of imperative slotting. FWIW, I wouldn't imagine specifying the initial assignment this way would be a common developer experience.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/967#issuecomment-1270952765

You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/967/1270952765@github.com>

Received on Friday, 7 October 2022 01:01:21 UTC