BASELINE NowYouCanUse.com
Widely Available Selectors
id: has

:has()

The :has() CSS functional pseudo-class matches an element if any of the selectors passed as parameters would match at least one element.
Baseline Status: Achieved Widely Available on Jun 19, 2026 (Cross-browser Newly Available since Dec 19, 2023).
Desktop Browser Engine Support
Google Chrome
105
Supported
Mozilla Firefox
121
Supported
Apple Safari
15.4
Supported
Microsoft Edge
105
Supported
Mobile Browser Engine Support
Chrome Android
105
Firefox Android
121
Safari iOS
15.4
Specifications and References