:focus-within CSS pseudo-class
94.68
The `:focus-within` pseudo-class matches elements that either themselves match `:focus` or that have descendants which match `:focus`.
Further reading:
- Can I use page for: :focus-within CSS pseudo-class
- The Future Generation of CSS Selectors: Level 4: Generalized Input Focus Pseudo-class
- ally.style.focusWithin Polyfill, part of ally.js
- Microsoft Edge feature request on UserVoice
- WebKit bug #140144: Add support for CSS4 `:focus-within` pseudo
- Chromium issue #617371: Implement `:focus-within` pseudo-class from Selectors Level 4
- Mozilla bug #1176997: Add support for pseudo class `:focus-within`
- JS Bin testcase
- MDN Web Docs - :focus-within