Skip to content

Commit

Permalink
Remove the :closed pseudo-class (#11326)
Browse files Browse the repository at this point in the history
This was resolved here:
#11039 (comment)
  • Loading branch information
josepharhar authored Dec 5, 2024
1 parent 883f39a commit 9655429
Showing 1 changed file with 4 additions and 5 deletions.
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

0 comments on commit 9655429

Please sign in to comment.