Re: [csswg-drafts] [selectors] The forgiving nature of :has breaks jQuery when used with a complex :has selector (#7676)

> @anttijk The problem isn't someone explicitly writing an empty :is(), it's someone writing a normal selector list into the pseudo-class and all of them turning out invalid. If _that_ makes _the entire selector_ invalid, but having _one_ recognized selector keeps it valid, it's a weird effect, as @romainmenke just pointed out.

In that example you could include all the selectors inside `:is` list which is probably more natural anyway. But there is not much point talking about it since the ship already sailed. (I don't care about the actually-empty case either).



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


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

Received on Wednesday, 7 December 2022 18:52:31 UTC