:focus-within CSS pseudo-class

- UNOFF

The :focus-within pseudo-class matches elements that either themselves match :focus or that have descendants which match :focus.

IE

  1. 5.5 - 10
  2. 11

Edge

  1. 12 - 18
  2. 79 - 81
  3. 83

Firefox

  1. 2 - 51
  2. 52 - 75
  3. 76
  4. 77 - 78

Chrome

  1. 4 - 58
  2. 59
  3. 60 - 81
  4. 83
  5. 84 - 86

Safari

  1. 3.1 - 10
  2. 10.1 - 13
  3. 13.1
  4. TP

Opera

  1. 9 - 45
  2. 46
  3. 47 - 67
  4. 68

iOS Safari

  1. 3.2 - 10.2
  2. 10.3 - 13.3
  3. 13.4

Opera Mini

  1. all

Android Browser

  1. 2.1 - 4.4.4
  2. 81

Blackberry Browser

  1. 7
  2. 10

Opera Mobile

  1. 10 - 12.1
  2. 46

Chrome for Android

  1. 81

Firefox for Android

  1. 68

IE Mobile

  1. 10
  2. 11

UC Browser for Android

  1. 12.12

Samsung Internet

  1. 4 - 7.4
  2. 8.2 - 10.1
  3. 11.1

QQ Browser

  1. 10.4

Baidu Browser

  1. 7.12

KaiOS Browser

  1. 2.5
Resources:
ally.style.focusWithin Polyfill, part of ally.js
JS Bin testcase
Chromium issue #617371: Implement `:focus-within` pseudo-class from Selectors Level 4
WebKit bug #140144: Add support for CSS4 `:focus-within` pseudo
Mozilla bug #1176997: Add support for pseudo class `:focus-within`
MDN Web Docs - :focus-within
Microsoft Edge feature request on UserVoice
The Future Generation of CSS Selectors: Level 4: Generalized Input Focus Pseudo-class