Re: [WICG/webcomponents] Proposal: Composable shadow roots, for extending builtins and more (Issue #1108)

LeaVerou left a comment (WICG/webcomponents#1108)

@justinfagnani 
> Especially with re-projection into the inner shadow root. As soon as you have an inner shadow root there's that possibility that the inner shadow root has slots, and then you need a fill to assign to them.

In my proposal the child component does not slot into slots of its parent component. Both their slots behave like normal component slots except that if there are naming conflicts, the child component's slots win.

That said, admittedly this was not a part of the proposal I put a lot of thought into, since the primary goal is subclassing natives, and they don't tend to use slots. It does seem reasonable that one may want to prefill some slots from the parent component when subclassing it, in which case I agree a dedicated element is necessary. That said, forwarding the slots so that they can be filled by component consumers also needs to be possible, and I’m not sure how that would look with either syntax…

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

Message ID: <WICG/webcomponents/issues/1108/3097911679@github.com>

Received on Monday, 21 July 2025 18:19:58 UTC