Skip to content

Commit 445096b

Browse files
authored
[selectors-4] Add :popover-open pseudo-class. (#11362)
This is as resolved in #8637. Fixes #8637.
1 parent eba9f93 commit 445096b

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

selectors-4/Overview.bs

+22-2
Original file line numberDiff line numberDiff line change
@@ -2632,6 +2632,23 @@ Collapse State: the '':open'' pseudo-class</h3>
26322632
Note: A ":closed" pseudo-class might be added in the future
26332633
once the full set of things that support '':open'' is known.
26342634

2635+
<h3 id="popover-open-state">
2636+
Popover State: the '':popover-open'' pseudo-class</h3>
2637+
2638+
The <dfn>:popover-open</dfn> pseudo-class represents an element
2639+
that has both “popover-showing” and “popover-hidden” states
2640+
and which is currently in the “popover-showing” state.
2641+
2642+
Note: This is distinct from '':open'' because
2643+
an element can have element-specific open and closed states
2644+
and also have separate popover-showing and popover-hidden states
2645+
associated with being a popover.
2646+
2647+
Exactly what “popover-showing” and “popover-hidden” states
2648+
mean is host-language specific,
2649+
but is exemplified by the presence of the HTML <{html-global/popover}> attribute
2650+
and the associated <a>popover visibility state</a>.
2651+
26352652
<h3 id="modal-state">
26362653
Modal (Exclusive Interaction) State: the '':modal'' pseudo-class</h3>
26372654

@@ -4192,8 +4209,11 @@ Changes since the 7 May 2022 Working Draft</h3>
41924209
Significant changes since the <a href="https://www.w3.org/TR/2022/WD-selectors-4-20220507/">7 May 2022 Working Draft</a>:
41934210

41944211
* Marked '':blank'' as at-risk and removed the at-risk status from '':read-write'' and '':has()''
4195-
* Added '':open'' and '':closed'' pseudo-classes.
4196-
(<a href="https://github.com/w3c/csswg-drafts/issues/7319">Issue 7319</a>)
4212+
* Added '':open'' pseudo-class.
4213+
(<a href="https://github.com/w3c/csswg-drafts/issues/7319">Issue 7319</a>,
4214+
<a href="https://github.com/w3c/csswg-drafts/issues/11039">Issue 11039</a>)
4215+
* Added '':popover-open'' pseudo-class.
4216+
(<a href="https://github.com/w3c/csswg-drafts/issues/8637">Issue 8637</a>)
41974217
* Disallowed [=pseudo-elements=] from '':has()'' unless explicitly allowed
41984218
by the pseudo-element’s definition.
41994219
(<a href="https://github.com/w3c/csswg-drafts/issues/7463">Issue 7463</a>)

0 commit comments

Comments
 (0)