Re: [csswg-drafts] [selectors-4] Remove the :scope dependency from the relative selectors definition (#6399)

The CSS Working Group just discussed `[selectors-4] Remove the :scope dependency from the relative selectors definition`, and agreed to the following:

* `RESOLVED: Remove special handling of :scope in :has()`
* `RESOLVED: Remove special handling of :scope in relative selectors generally`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: [selectors-4] Remove the :scope dependency from the relative selectors definition<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/6399<br>
&lt;fantasai> futhark: :scope was specced to have a special meaning inside :has, that it matches the selector matched by :has() itself<br>
&lt;fantasai> futhark: It would be much simpler it kept the same meaning as it has outside of :has()<br>
&lt;TabAtkins> q+<br>
&lt;bkardell_> hi<br>
&lt;astearns> ack TabAtkins<br>
&lt;fantasai> TabAtkins: Making :has() give a special meaning to :scope wasn't a definitive choice, it just fell out of the definitions we had<br>
&lt;fantasai> TabAtkins: I'm comfortable with removing this<br>
&lt;bkardell_> what is the meeting link<br>
&lt;fantasai> TabAtkins: Just need to do some edits to definitions<br>
&lt;fantasai> futhark: there are complexities when it complexities for allowing :scope inside :has()<br>
&lt;fantasai> futhark: it'll be easier to handle cases wrt shadow hosts if we make this change<br>
&lt;TabAtkins> Yeah, :scope was invented for querySelector anyway, I'm comfortable boxing it off for just that purpose.<br>
&lt;fantasai> fantasai: I think to the extent we might need such a functionality, we can choose a different syntax for it<br>
&lt;emilio> +1<br>
&lt;fantasai> RESOLVED: Remove special handling of :scope in :has()<br>
&lt;fantasai> TabAtkins: I would prefer to remove it for relative selectors in general, and redefine :scope to just be for .querySelector<br>
&lt;fantasai> TabAtkins: I think we'll run into these problems in the future otherwise<br>
&lt;fantasai> RESOLVED: Remove special handling of :scope in relative selectors generally<br>
&lt;fantasai> futhark: issue 7211 looks related<br>
&lt;fantasai> astearns: Let's skip, I'll add a comment pointing to this resolution<br>
</details>


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


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

Received on Wednesday, 1 June 2022 16:11:07 UTC