Skip to content

Commit 633659c

Browse files
authored
Redefine open-closed to be only about :open (#3238)
The :closed pseudo-class was removed from the spec: w3c/csswg-drafts#11326 This feature should be renamed to just `open` once we support renaming, but it's OK that the `open-closed` identifier is taken because if :closed is added in the future, it would be as `closed`, at least until the very far future where they could merge again...
1 parent 21ef055 commit 633659c

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

features/open-closed.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
name: Open and closed selectors
2-
description: The `:open` and `:closed` CSS pseudo-classes match elements that have open and closed states, like `<details`, `<dialog>`, or `<select>`, based on their state.
1+
name: ":open"
2+
description: The `:open` CSS pseudo-class matches elements that have open states, like `<details`, `<dialog>`, or `<select>`, based on their state.
33
spec: https://drafts.csswg.org/selectors-4/#open-state
44
group: selectors
55
compat_features:
6-
- css.selectors.closed
76
- css.selectors.open

features/open-closed.yml.dist

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,11 @@
33

44
status:
55
baseline: false
6-
support: {}
6+
support:
7+
chrome: "133"
8+
chrome_android: "133"
9+
edge: "133"
10+
firefox: "136"
11+
firefox_android: "136"
712
compat_features:
8-
# baseline: false
9-
# support:
10-
# chrome: "133"
11-
# chrome_android: "133"
12-
# edge: "133"
13-
# firefox: "136"
14-
# firefox_android: "136"
1513
- css.selectors.open
16-
17-
# ⬇️ Same status as overall feature ⬇️
18-
# baseline: false
19-
# support: {}
20-
- css.selectors.closed

0 commit comments

Comments
 (0)