Re: [csswg-drafts] [selectors-4] Disallow pseudo-elements inside :has() (#7463)

Note that if e.g. `::foo` were defined to be allowed in `:has()`, `:has(::foo)` would be like `:has(*::foo)`, i.e. it would match if some descendant of the subject has a `::foo` (whatever that would mean). It wouldn't check the subject element at all.

I think this defeats the possibility of "allowing future pseudo-elements to define that they are valid" until we have a `:>` combinator (#7346).

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


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

Received on Wednesday, 14 December 2022 16:15:49 UTC