:has() CSS relational pseudo-class

- WD

Only select elements containing specified content. For example, a:has(>img) selects all <a> elements that contain an <img> child.

IE

  1. 5.5 - 10: Not supported
  2. 11: Not supported

Edge

  1. 12 - 102: Not supported
  2. 103: Not supported

Firefox

  1. 2 - 101: Not supported
  2. 102: Not supported
  3. 103 - 104: Not supported

Chrome

  1. 4 - 100: Not supported
  2. 101 - 102: Disabled by default
  3. 103: Disabled by default
  4. 104: Disabled by default
  5. 105 - 106: Supported

Safari

  1. 3.1 - 15.3: Not supported
  2. 15.4: Supported
  3. 15.5: Supported
  4. 16.0 - TP: Supported

Opera

  1. 9 - 85: Not supported
  2. 86: Not supported
  3. 87: Not supported

Safari on iOS

  1. 3.2 - 15.3: Not supported
  2. 15.4: Supported
  3. 15.5: Supported
  4. 16.0: Supported

Opera Mini

  1. all: Not supported

Android Browser

  1. 2.1 - 4.4.4: Not supported
  2. 103: Not supported

Opera Mobile

  1. 10 - 12.1: Not supported
  2. 64: Not supported

Chrome for Android

  1. 103: Not supported

Firefox for Android

  1. 101: Not supported

UC Browser for Android

  1. 12.12: Not supported

Samsung Internet

  1. 4 - 16.0: Not supported
  2. 17.0: Not supported

QQ Browser

  1. 10.4: Not supported

Baidu Browser

  1. 7.12: Not supported

KaiOS Browser

  1. 2.5: Not supported
Resources:
Chrome bug to track implementation
WebKit support bug
Firefox support bug
MDN Web Docs - :has