Skip to content

Revert "chore(iop): Add redirects for :open and :closed to :popover-open" #37463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

skyclouds2001
Copy link
Contributor

Remove redirects of :open and :closed to :popover-open

This reverts #30342

Per bcd (https://github.com/mdn/browser-compat-data/blob/main/css/selectors/open.json and https://github.com/mdn/browser-compat-data/blob/main/css/selectors/closed.json), these are shipped in chrome once but removed later

And per spec (https://drafts.csswg.org/selectors/#selectordef-open and https://html.spec.whatwg.org/multipage/semantics-other.html#selector-open), there's seems to be a new :open pseudo class, which is different from the previously one. And per the note, a new :closed pseudo class may also be added in the future. SO it is better to remove these redirects for now.

w3c/csswg-drafts#7319 proposal for adding :open
w3c/csswg-drafts#11039 a open discussion for whether keeping :open and :closedQ
w3c/csswg-drafts#11326 removes :closed (and add note indicate this may add back in the future)

@skyclouds2001 skyclouds2001 marked this pull request as ready for review January 1, 2025 16:49
@skyclouds2001 skyclouds2001 requested a review from a team as a code owner January 1, 2025 16:49
@skyclouds2001 skyclouds2001 requested review from chrisdavidmills and removed request for a team January 1, 2025 16:49
@github-actions github-actions bot added the size/xs [PR only] 0-5 LoC changed label Jan 1, 2025
Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

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

Seems reasonable, thanks @skyclouds2001.

@chrisdavidmills chrisdavidmills merged commit 306aae6 into mdn:main Jan 2, 2025
5 checks passed
@skyclouds2001 skyclouds2001 deleted the revert-30342-css-pseudo-open branch January 2, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants