Repository navigation
Redefine open-closed to be only about :open - #3238
Merged
Merged
Conversation
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...
Collaborator
Author
ddbeck
reviewed
Aug 20, 2025
| name: Open and closed selectors | ||
| 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. | ||
| name: ":open" | ||
| description: The `:open` CSS pseudo-class matches elements that have open states, like `<details`, `<dialog>`, or `<select>`, based on their state. |
Collaborator
There was a problem hiding this comment.
Suggested change
| description: The `:open` CSS pseudo-class matches elements that have open states, like `<details`, `<dialog>`, or `<select>`, based on their state. | |
| description: The `:open` CSS pseudo-class matches elements that have open states, like `<details>`, `<dialog>`, or `<select>`, based on their state. |
ddbeck
approved these changes
Aug 20, 2025
Collaborator
open-closed to be only about :openopen-closed to be only about :open
ddbeck
added a commit
to ddbeck/web-features
that referenced
this pull request
Aug 21, 2025
I saw this in web-platform-dx#3238 (review) but failed to actually apply it before merging.
foolip
pushed a commit
that referenced
this pull request
Aug 25, 2025
I saw this in #3238 (review) but failed to actually apply it before merging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The :closed pseudo-class was removed from the spec:
w3c/csswg-drafts#11326
This feature should be renamed to just
openonce we support renaming,but it's OK that the
open-closedidentifier is taken because if:closed is added in the future, it would be as
closed, at least untilthe very far future where they could merge again...