- From: Justin Fagnani <notifications@github.com>
- Date: Fri, 20 Mar 2026 14:59:05 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 20 March 2026 21:59:09 UTC
justinfagnani left a comment (WICG/webcomponents#967) > Some elements that use manual slot assignment only do so for simple heuristics, such as tag matching or so. Perhaps we could use CSS queries to help here? I don't think it'd be good to mix CSS in here. I think it'd be confusing that you could use selectors to make the initial slot assignments for DSD, but not for non-DSD, and it wouldn't be in sync after any changes. Selectors also work only against elements, but text nodes can be slotted. If we added selectors I think it'd be better to just do the `content` selector like in v0, but that's a whole other discussion that was already had in the v1 days. Someone could re-open that discussion, but I think it would be best separated from DSD. The only thing we can say about manual slot assignment is that children can be assigned to one slot. I think some very simple indexing, like above, is about the only thing that maps directly: `<slot initialelements="0 2 4">`. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/967#issuecomment-4101162575 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/967/4101162575@github.com>
Received on Friday, 20 March 2026 21:59:09 UTC