:has()
Read More at MDN DocsView SpecSafe to Use
:has()
is mostly safe to use.
It’s supported by 83% of global browsers.
Browsers
ChromeSep 2, 2022v105.0.0
23%╱89%
There are no users of Chrome running a supported version.
SafariMar 15, 2022v15.4.05%╱83%
There are no users of Safari running a supported version.
EdgeSep 1, 2022v105.0.05%╱99%
There are no users of Edge running a supported version.
FirefoxUnsupportedFirefox does not support this feature.
Version Breakdown
Support
Adoption
Chrome
Sep 2, 2022 v105.0.0
23%╱89%
There are no users of Chrome running a supported version.
Sep 2, 2022 – Latest
v105.0.0+
23%╱89%
Full Support
Chrome Android
Sep 2, 2022 v105.0.0
34%╱93%
There are no users of Chrome Android running a supported version.
Sep 2, 2022 – Latest
v105.0.0+
34%╱93%
Full Support
Edge
Sep 1, 2022 v105.0.0
5%╱99%
There are no users of Edge running a supported version.
Sep 1, 2022 – Latest
v105.0.0+
5%╱99%
Full Support
Firefox
Unsupported
Firefox does not support this feature.
Jul 26, 2022 – Latest
v103.0.0+
2%╱91%
This feature is behind the layout.css.has-selector.enabled
preference (needs to be set to true
Firefox for Android
Unsupported
Firefox for Android does not support this feature.
No Support
Internet Explorer
Unsupported
Internet Explorer does not support this feature.
No Support
Unsupported
Quest Browser does not support this feature.
No Support
Opera
Sep 14, 2022 v91.0.0
0%╱5%
There are no users of Opera running a supported version.
Sep 14, 2022 – Latest
v91.0.0+
0%╱5%
Full Support
Opera Android
Oct 21, 2022 v72.0.0
Opera Android supports this feature.
Oct 21, 2022 – Latest
v72.0.0+
Full Support
Safari
Mar 15, 2022 v15.4.0
5%╱83%
There are no users of Safari running a supported version.
Mar 15, 2022 – Latest
v15.4.0+
5%╱83%
Full Support
Safari on iOS
Mar 15, 2022 v15.4.0
15%╱91%
There are no users of Safari on iOS running a supported version.
Mar 15, 2022 – Latest
v15.4.0+
15%╱91%
Full Support
Samsung Internet
Feb 10, 2023 v20.0.0
2%╱84%
There are no users of Samsung Internet running a supported version.
Feb 10, 2023 – Latest
v20.0.0+
2%╱84%
Full Support
WebView Android
Sep 2, 2022 v105.0.0
WebView Android supports this feature.
Sep 2, 2022 – Latest
v105.0.0+
Full Support