:has()
Widely availableThe :has()
CSS functional pseudo-class matches an element if any of the selectors passed as parameters would match at least one element.
Safari Browser
iOS
15.4
The :has()
CSS functional pseudo-class matches an element if any of the selectors passed as parameters would match at least one element.