Skip to content

Commit d93569c

Browse files
committed
Add the :state() CSS pseudo-class
1 parent f6171e4 commit d93569c

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

features/state.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: :state()
2+
description: The `:state()` pseudo-class matches custom elements based on their custom state, set through the `ElementInternals.states` API.
3+
spec: https://html.spec.whatwg.org/multipage/custom-elements.html#custom-state-pseudo-class
4+
compat_features:
5+
- css.selectors.state
6+
- api.CustomStateSet
7+
- api.CustomStateSet.@@iterator
8+
- api.CustomStateSet.add
9+
- api.CustomStateSet.clear
10+
- api.CustomStateSet.delete
11+
- api.CustomStateSet.entries
12+
- api.CustomStateSet.forEach
13+
- api.CustomStateSet.has
14+
- api.CustomStateSet.keys
15+
- api.CustomStateSet.size
16+
- api.CustomStateSet.values
17+
- api.ElementInternals.states

features/state.yml.dist

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Generated from: state.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: low
6+
baseline_low_date: 2024-05-17
7+
support:
8+
chrome: "125"
9+
chrome_android: "125"
10+
edge: "125"
11+
firefox: "126"
12+
firefox_android: "126"
13+
safari: "17.4"
14+
safari_ios: "17.4"
15+
compat_features:
16+
# baseline: low
17+
# baseline_low_date: 2024-05-14
18+
# support:
19+
# chrome: "90"
20+
# chrome_android: "90"
21+
# edge: "90"
22+
# firefox: "126"
23+
# firefox_android: "126"
24+
# safari: "17.4"
25+
# safari_ios: "17.4"
26+
- api.CustomStateSet
27+
- api.CustomStateSet.@@iterator
28+
- api.CustomStateSet.add
29+
- api.CustomStateSet.clear
30+
- api.CustomStateSet.delete
31+
- api.CustomStateSet.entries
32+
- api.CustomStateSet.forEach
33+
- api.CustomStateSet.has
34+
- api.CustomStateSet.keys
35+
- api.CustomStateSet.size
36+
- api.CustomStateSet.values
37+
- api.ElementInternals.states
38+
39+
# ⬇️ Same status as overall feature ⬇️
40+
# baseline: low
41+
# baseline_low_date: 2024-05-17
42+
# support:
43+
# chrome: "125"
44+
# chrome_android: "125"
45+
# edge: "125"
46+
# firefox: "126"
47+
# firefox_android: "126"
48+
# safari: "17.4"
49+
# safari_ios: "17.4"
50+
- css.selectors.state

0 commit comments

Comments
 (0)