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

# :state() (`state`)

The :state() CSS pseudo-class matches custom elements based on their custom state, set through the ElementInternals.states API.

- **Group**: Custom elements
- **Baseline**: Widely Available
- **Newly Available Date**: 2024-05-17
- **Widely Available Date**: 2026-11-17
- **Specification**: https://html.spec.whatwg.org/multipage/custom-elements.html#custom-state-pseudo-class
- **Constituent BCD keys**: 13

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Safari | 17.4 | 2024-03-05 |
| Safari on iOS | 17.4 | 2024-03-05 |
| Chrome | 125 | 2024-05-14 |
| Chrome Android | 125 | 2024-05-14 |
| Firefox | 126 | 2024-05-14 |
| Firefox for Android | 126 | 2024-05-14 |
| Edge | 125 | 2024-05-17 |

