Re: [csswg-drafts] [selectors-4] Consider disallowing logical combination pseudo-classes inside :has() (#6952)

One of use cases for `:not()` inside `:has()` seems to be telling apart elements containing text from those that contain only other elements (e.g. see [this Twitter tread](https://twitter.com/simevidas/status/1482471997569445895)). There would be no need to employ this combination for this task if there would be a dedicated selector for elements with text, e.g. `:has-text`. Are there any plans to introduce something like this?

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


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

Received on Sunday, 16 January 2022 15:59:53 UTC