From a1d300e8bbd95cb545d3170b82047ac2ac720c1d Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Thu, 5 Dec 2024 08:00:48 -0800 Subject: [PATCH] Remove the :closed pseudo-class This was resolved here: https://github.com/w3c/csswg-drafts/issues/11039#issuecomment-2491673891 --- selectors-4/Overview.bs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/selectors-4/Overview.bs b/selectors-4/Overview.bs index 8e79377f7ea..ca9992ad56b 100644 --- a/selectors-4/Overview.bs +++ b/selectors-4/Overview.bs @@ -2611,16 +2611,12 @@ Sound State: the '':muted'' and '':volume-locked'' pseudo-classes Element Display State Pseudo-classes

-Collapse State: the '':open'' and '':closed'' pseudo-class

+Collapse State: the '':open'' pseudo-class The :open pseudo-class represents an element that has both “open” and “closed” states, and which is currently in the “open” state. - The :closed 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, @@ -2633,6 +2629,9 @@ Collapse State: the '':open'' and '':closed'' pseudo-class 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. +