Skip to content

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

Merged
chrisdavidmills merged 1 commit into
mdn:mainfrom
skyclouds2001:revert-30342-css-pseudo-open
Jan 2, 2025
Merged

chrisdavidmills merged 1 commit into
mdn:mainfrom
skyclouds2001:revert-30342-css-pseudo-open

Conversation

@skyclouds2001

Copy link
Copy Markdown
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 review from a team and 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

@chrisdavidmills chrisdavidmills left a comment

Copy link
Copy Markdown
Contributor

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