Skip to content

Redefine open-closed to be only about :open - #3238

Merged
ddbeck merged 1 commit into
web-platform-dx:mainfrom
foolip:open-closed-is-just-open
Aug 20, 2025
Merged

ddbeck merged 1 commit into
web-platform-dx:mainfrom
foolip:open-closed-is-just-open

Conversation

@foolip

@foolip foolip commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator

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...

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...
@github-actions github-actions Bot added the feature definition Creating or defining new features or groups of features. label Aug 20, 2025
@foolip

foolip commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator Author

This should be cleaned up after #91. @ddbeck are you keeping a list?

Comment thread features/open-closed.yml
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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

ddbeck commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator

This should be cleaned up after #91. @ddbeck are you keeping a list?

I sent #3239. I'm not keeping a central list, but I will start one soon.

@ddbeck
ddbeck merged commit 633659c into web-platform-dx:main Aug 20, 2025
@ddbeck ddbeck changed the title Redefine open-closed to be only about :open Redefine open-closed to be only about :open Aug 20, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants