Next-Gen App & Browser
Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

:has() CSS relational pseudo-class

Last updated on : 2023-03-20

Note:
:has() CSS relational pseudo-class shows a browser compatibility score of 37. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.

Overview

The :has selector matches elements that include an element of a specific kind immediately inside. For example, the following rule matches elements that contain an image, i.e. .

Specifications

Selectors Level 4 # relational

Syntax

:has( <forgiving-relative-selector-list> )

Code snippets

index.html

Source:index.html Github

copy

Full Screen

Full Screen

Browser Compatibility

  • :has() CSS relational pseudo-class on IE is fully supported on None of the versions, partially supported on None of the versions, and not supported on 5.5-11 IE versions.
  • :has() CSS relational pseudo-class on Edge is fully supported on 105-111, partially supported on None of the versions, and not supported on 12-104 Edge versions.
  • :has() CSS relational pseudo-class on Firefox is fully supported on None of the versions, partially supported on None of the versions, and not supported on 2-113 Firefox versions.
  • :has() CSS relational pseudo-class on Chrome is fully supported on 106-114, partially supported on None of the versions, and not supported on 4-105 Chrome versions.
  • :has() CSS relational pseudo-class on Safari is fully supported on 15.6-16.4, partially supported on None of the versions, and not supported on 3.2-15 Safari versions.
  • :has() CSS relational pseudo-class on Opera is fully supported on 91-95, partially supported on None of the versions, and not supported on 9.5-90 Opera versions.
  • :has() CSS relational pseudo-class on Safari on iOS is fully supported on 15.5-16.4, partially supported on None of the versions, and not supported on 3.2-15.4 Safari on iOS versions.
  • :has() CSS relational pseudo-class on Android Browser is fully supported on 105-111, partially supported on None of the versions, and not supported on 2.1-104 Android Browser versions.
  • :has() CSS relational pseudo-class on Opera Mobile is fully supported on 72-73, partially supported on None of the versions, and not supported on 10-64 Opera Mobile versions.
  • :has() CSS relational pseudo-class on Chrome for Android is fully supported on 105-111, partially supported on None of the versions, and not supported on 97-104 Chrome for Android versions.
  • :has() CSS relational pseudo-class on Firefox for Android is fully supported on None of the versions, partially supported on None of the versions, and not supported on 95-110 Firefox for Android versions.
  • :has() CSS relational pseudo-class on Samsung Internet is fully supported on 20-20, partially supported on None of the versions, and not supported on 4-19 Samsung Internet versions.
37
Lowtooltip

Browser Compatibility Score

Chrome IE
Low

Browser Support For IE Versions

-
Fully
-
Partially
5.5-11
No Support
Chrome Edge
Medium

Browser Support For Edge Versions

105-111
Fully
-
Partially
12-104
No Support
Chrome Firefox
Low

Browser Support For Firefox Versions

-
Fully
-
Partially
2-113
No Support
Chrome Chrome
Low

Browser Support For Chrome Versions

106-114
Fully
-
Partially
4-105
No Support
Chrome Safari
High

Browser Support For Safari Versions

15.6-16.4
Fully
-
Partially
3.2-15
No Support
Chrome Opera
Low

Browser Support For Opera Versions

91-95
Fully
-
Partially
9.5-90
No Support
Chrome Safari on iOS
Medium

Browser Support For Safari on iOS Versions

15.5-16.4
Fully
-
Partially
3.2-15.4
No Support
Chrome Android Browser
Medium

Browser Support For Android Browser Versions

105-111
Fully
-
Partially
2.1-104
No Support
Chrome Opera Mobile
Medium

Browser Support For Opera Mobile Versions

72-73
Fully
-
Partially
10-64
No Support
Chrome Chrome for Android
High

Browser Support For Chrome for Android Versions

105-111
Fully
-
Partially
97-104
No Support
Chrome Firefox for Android
Low

Browser Support For Firefox for Android Versions

-
Fully
-
Partially
95-110
No Support
Chrome Samsung Internet
Low

Browser Support For Samsung Internet Versions

20-20
Fully
-
Partially
4-19
No Support

Debug webpages on the go with LT Debug Chrome extension.

Add to Chrome
LT Browser

Test your website on 3000+ browsers

Test your website on 3000+ real browsers and operating systems for mobile and desktop with the LambdaTest cloud. Perform browser compatibility test for :has() CSS relational pseudo-class and many more web technologies that are a part of your website or web-application.

Last Modified date

2023-03-20

Browser Support for :has() CSS relational pseudo-class

References


Data sourced from

Debug webpages on the go with LT Debug Chrome extension.

Add to Chrome
LT Browser

Debug Your Mobile Websites Faster With LT Browser!

Harness the power of Chromium-based engine to deliver responsive websites and web apps.

Try for free...
Join

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful

LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie