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

[selectors] Remove the :closed pseudo-class #11326

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions selectors-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2611,16 +2611,12 @@ Sound State: the '':muted'' and '':volume-locked'' pseudo-classes</h3>
Element Display State Pseudo-classes</h2>

<h3 id="open-state">
Collapse State: the '':open'' and '':closed'' pseudo-class</h3>
Collapse State: the '':open'' pseudo-class</h3>

The <dfn>:open</dfn> pseudo-class represents an element
that has both “open” and “closed” states,
and which is currently in the “open” state.

The <dfn>:closed</dfn> pseudo-class represents an element
that has both “open” and “closed” states,
and which is currently in the closed state.

Exactly what “open” and “closed” mean is host-language specific,
but exemplified by elements such as
HTML's <{details}>, <{select}>, and <{dialog}> elements,
Expand All @@ -2633,6 +2629,9 @@ Collapse State: the '':open'' and '':closed'' pseudo-class</h3>
or belongs to a ''display: none'' subtree)
can still be “open” and will match '':open''.

Note: A ":closed" pseudo-class might be added in the future
once the full set of things that support '':open'' is known.

<h3 id="modal-state">
Modal (Exclusive Interaction) State: the '':modal'' pseudo-class</h3>

Expand Down