Baseline Widely Custom elements
:state()
The :state() CSS pseudo-class matches custom elements based on their custom state, set through the ElementInternals.states API.
Baseline Status
Widely Available
Since 2024-05-17
First Core Launch
Safari 17.4
2024-03-05
Core-3 Stability
70d
Last: Firefox (2024-05-14)
BCD Keys Mapped
13
Group: Custom elements
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Safari | desktop | 17.4 | 2024-03-05 |
| Safari on iOS | mobile | 17.4 | 2024-03-05 |
| Chrome | desktop | 125 | 2024-05-14 |
| Chrome Android | mobile | 125 | 2024-05-14 |
| Firefox | desktop | 126 | 2024-05-14 |
| Firefox for Android | mobile | 126 | 2024-05-14 |
| Edge | desktop | 125 | 2024-05-17 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| api.CustomStateSet | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.@@iterator | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.add | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.clear | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.delete | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.entries | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.forEach | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.has | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.keys | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.size | DOM API | 1,127d (3.1y) |
| api.CustomStateSet.values | DOM API | 1,127d (3.1y) |
| api.ElementInternals.states | DOM API | 1,127d (3.1y) |
| css.selectors.state | CSS | 70d |