🏠 New in High Baseline Support: :has()
June 19, 2026
The :has() CSS functional pseudo-class matches an element if any of the selectors passed as parameters would match at least one element.
Source features
css.selectors.has[mdn]
June 19, 2026
The :has() CSS functional pseudo-class matches an element if any of the selectors passed as parameters would match at least one element.
css.selectors.has [mdn]