Skip to content

Commit 9655429

Browse files
authored
Remove the :closed pseudo-class (#11326)
This was resolved here: #11039 (comment)
1 parent 883f39a commit 9655429

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

selectors-4/Overview.bs

+4-5
Original file line numberDiff line numberDiff line change
@@ -2611,16 +2611,12 @@ Sound State: the '':muted'' and '':volume-locked'' pseudo-classes</h3>
26112611
Element Display State Pseudo-classes</h2>
26122612

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

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

2620-
The <dfn>:closed</dfn> pseudo-class represents an element
2621-
that has both “open” and “closed” states,
2622-
and which is currently in the closed state.
2623-
26242620
Exactly what “open” and “closed” mean is host-language specific,
26252621
but exemplified by elements such as
26262622
HTML's <{details}>, <{select}>, and <{dialog}> elements,
@@ -2633,6 +2629,9 @@ Collapse State: the '':open'' and '':closed'' pseudo-class</h3>
26332629
or belongs to a ''display: none'' subtree)
26342630
can still be “open” and will match '':open''.
26352631

2632+
Note: A ":closed" pseudo-class might be added in the future
2633+
once the full set of things that support '':open'' is known.
2634+
26362635
<h3 id="modal-state">
26372636
Modal (Exclusive Interaction) State: the '':modal'' pseudo-class</h3>
26382637

0 commit comments

Comments
 (0)