---
id: "focus-within"
kind: "web-feature"
canonical: "https://timetostable.com/feature/focus-within"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# :focus-within (`focus-within`)

The :focus-within CSS pseudo-class matches an element if the element or any of its children are focused.

- **Group**: Selectors
- **Baseline**: Widely Available
- **Newly Available Date**: 2020-01-15
- **Widely Available Date**: 2022-07-15
- **Specification**: https://drafts.csswg.org/selectors-4/#the-focus-within-pseudo
- **Constituent BCD keys**: 1

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 52 | 2017-03-07 |
| Firefox for Android | 52 | 2017-03-07 |
| Safari | 10.1 | 2017-03-27 |
| Safari on iOS | 10.3 | 2017-03-27 |
| Chrome | 60 | 2017-07-25 |
| Chrome Android | 60 | 2017-08-01 |
| Edge | 79 | 2020-01-15 |

