Skip to content
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

Include :open in the open variant #15349

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

lukewarlow
Copy link
Contributor

Update the open variant to addtionally match the new :open pseudo class.

See spec at https://drafts.csswg.org/selectors-4/#open-state

See Chromium intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/Pdo4oOXYKcA

:open matches open <details> and <dialog> elements (already covered by [open]), but also matches select elements with their picker open and inputs with their picker open.

Thanks to :is() taking a forgiving selector list, this is safe to add even with limited browser support.

@lukewarlow lukewarlow requested a review from a team as a code owner December 9, 2024 23:37
@lukewarlow lukewarlow changed the title Update open variant Include :open in the open variant Dec 10, 2024
lukewarlow and others added 2 commits December 12, 2024 15:16
open now matches the new `:open` pseudo class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants