Re: [csswg-drafts] [selectors-4] Consider disallowing :has() outside the rightmost compound (#6845)

I think this almost makes `:has()` equivalent to the [old `:subject` proposal](https://www.w3.org/TR/2000/WD-css3-selectors-20001005/#subject-pseudo) (which was used to mark which piece of a selector was the subject), with the exception that you could still have more than one `:has()` on the rightmost piece-between-combinators.  (Or do you propose to limit that as well?  How much complexity and value does allowing more than one `:has()` yield?)

(I did suggest a few times that `:subject` might be preferable because it might be easier to implement; I found [one brief reference](https://lists.w3.org/Archives/Public/www-style/2019Jul/0002.html) but I think I'd written or said something longer at some point before that.)

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


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

Received on Tuesday, 30 November 2021 14:49:44 UTC