Re: [csswg-drafts] [css-shadow-parts] Make `::slotted()` a combinator (#7922)

> Does that mean we would alter the interpretation of `::slotted()` or pair it with something that altered the syntax of `:host ::slotted(input)` to (pretend use `%`) `:host % input`? I'm looking to see what you're thinking regarding the size of the delta here: plug-n-play, additive, breaking, etc.

Not sure I fully understand your question, but we can certainly not remove `::slotted()` (yet) or alter its interpretation as that would cause compat issues, this would be an addition. If once the combinator is well established, `::slotted()` usage drops below a certain theshold, maybe we could remove it then.

Btw no need to use a placeholder symbol, for something like this I don't think more ascii art is appropriate, something like `/slotted/` is fine. 

One small downside of a combinator is that you need to target the element the combinator operates on, i.e. the slot element, which makes for somewhat awkward syntax e.g. `slot /slotted/ input` or just `* /slotted/ input` instead of `::slotted(input)`.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7922#issuecomment-1285837677 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 20 October 2022 16:26:09 UTC