Re: [csswg-drafts] [selectors][css-scoping] Should :host(:has()) match? (#11859)

The CSS Working Group just discussed `[selectors][css-scoping] Should :host(:has()) match?`.

<details><summary>The full IRC log of that discussion</summary>
&lt;emeyer> alisonmaher: We previously resolved to allow host:has(), matching against shadow DOM descendants<br>
&lt;TabAtkins> :host:has() (allowed), :host(:has()) (what we're discussing here)<br>
&lt;emeyer> …But the spec doesn’t allow matching into the light DOM<br>
&lt;emeyer> …If we were to allow this, we’d have to change something<br>
&lt;emeyer> …I think we’d have to change what we allow by :host<br>
&lt;TabAtkins> q+<br>
&lt;astearns> ack TabAtkins<br>
&lt;emeyer> …Want to open this for discussion<br>
&lt;emeyer> TabAtkins: The main objection for this was coming from Apple developers, so I’d like to have them in the room when we discuss this<br>
&lt;emilio> q+<br>
&lt;emeyer> …My opinion is we should allow everything because I like features, but I also appreciate performance concerns<br>
&lt;astearns> ack emilio<br>
&lt;emeyer> …I can’t represent their opinion<br>
&lt;emeyer> emilio: This might not be an issue because of where CHroms sotres (or maybe stored?) invalidations, but we really don’t want to do the same<br>
&lt;emeyer> …I do think it can be problematic<br>
&lt;emeyer> …I can check with the person who implemented :has() in Gecko, but I think this makes invalidating :has() rather complicated and I’m not sure how to go about it<br>
&lt;emeyer> s/CHroms sotres/Chrome stores/<br>
&lt;emeyer> …I can take an issue to check with David Shin, but I don’t see a great way of making this fast<br>
&lt;emeyer> astearns: I know Ryuske hosted Breakout Day sessions that were at least related to this; anyone attend those?<br>
&lt;emeyer> (no)<br>
&lt;emeyer> …I’ll look to see if there’s anything there I can bring back to the issue<br>
&lt;emeyer> …We’ll have to come back to this later<br>
&lt;emeyer> alisonmaher: Sounds good to me<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11859#issuecomment-2775928623 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 14:11:27 UTC