For those that don’t know, here is the spec for :has()
, per the CSSWG:
The relational pseudo-class, :has(), is a functional pseudo-class taking a relative selector list as an argument. It represents an element if any of the relative selectors, when absolutized and evaluated with the element as the :scope elements, would match at least one element.
To my knowledge, this is not being actively worked on by any vendor. No doubt, this single selector complicates CSS by a mile implementation-wise. However, the implementation of such a selector would be widespread, as most experienced developers could attest.
Hopefully you all agree that this is a very powerful selector, and should be implemented.