Re: [csswg-drafts] ::slotted() should full support complex selector!! (#2425)

The CSS Working Group just discussed `::slotted() should full support complex selector!!`.

<details><summary>The full IRC log of that discussion</summary>
&lt;TabAtkins> lea: representing this since it's opened by a non-member<br>
&lt;TabAtkins> lea: since ::slotted() only does compound selectors, it imposes constraints on the markup that aren't good for a11y, seo, etc. forces a shallower structure than is ideal<br>
&lt;TabAtkins> lea: in many cases you ahve new components thata re just a div, but that way you have logic and styling in them. &lt;carous-el> and &lt;carous-el-item><br>
&lt;TabAtkins> lea: lots of instances of this, parent control and dummy child control, just to get ::slotted access<br>
&lt;TabAtkins> lea: so lots of people confused<br>
&lt;TabAtkins> lea: usual pushback is hard to implement<br>
&lt;TabAtkins> lea: and pushback against ::slotted() a combinator is it doesn't support complex selectors<br>
&lt;TabAtkins> lea: think we'll need to do that at some point anyway, and then we'll have a pseudo-element with complex selectors, which is worse<br>
&lt;TabAtkins> lea: so i think this adds to the pile of reasons slotted should be a combinator (not to beat a dead horse)<br>
&lt;TabAtkins> lea: i hear the arguments about not breaking encapsulation, don't want a component tos tyle light dom... i disagree, but i get them<br>
&lt;TabAtkins> lea: but for things inside the component's own light-dom subtree, it's arbitrary to say they can style their direct chidlren but not descendants<br>
&lt;TabAtkins> lea: like how would we do &lt;tab-el>? or &lt;s-el-ect>?<br>
&lt;TabAtkins> astearns: in your comments you said usual complaint is hard to implement. i think keith put this on here to ask<br>
&lt;TabAtkins> TabAtkins: do we want to delay until Emilio returns, then?<br>
&lt;TabAtkins> ntim: i wanna hear from Ryosuke as well<br>
&lt;TabAtkins> astearns: so maybe we can take this up... would this be okay to take up in the Forms TF? can we get ryosuke to join that?<br>
&lt;TabAtkins> ntim: how is that forms related...<br>
&lt;TabAtkins> astearns: so we're closing this with "i dunno" for now<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2425#issuecomment-2776209330 using your GitHub account


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

Received on Thursday, 3 April 2025 15:36:23 UTC