Skip to content

Commit 2ff2437

Browse files
authored
Rename :open to :popover-open and remove :closed
As discussed in w3c/csswg-drafts#8637. Tests: web-platform-tests/wpt#39222.
1 parent a20f673 commit 2ff2437

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

source

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72496,24 +72496,15 @@ Demos:
7249672496
not null, or containing no elements, if it is.

7249772497
7249872498

72499-
:open
72499+
popover-open">:popover-open
7250072500
72501-

The :open pseudo-class is defined to match

72502-
any HTML element whose
72501+

The popover-open">:popover-open pseudo-class is

72502+
defined to match any HTML element whose
7250372503
data-x="attr-popover">popover attribute is not in the
7250472504
data-x="attr-popover-none-state">no popover state and whose popover visibility
7250572505
state is showing.

7250672506
7250772507

72508-
:closed
72509-
72510-

The :closed pseudo-class is defined to

72511-
match any HTML element whose
72512-
data-x="attr-popover">popover attribute is not in the
72513-
data-x="attr-popover-none-state">no popover state and whose popover visibility
72514-
state is hidden.

72515-
72516-
7251772508
:enabled
7251872509
7251972510

The :enabled pseudo-class must match any

@@ -123590,10 +123581,11 @@ dialog::backdrop {
123590123581
background: rgba(0,0,0,0.1);
123591123582
}
123592123583

123593-
[popover]:closed:not(dialog[open]) {
123584+
[popover]:not(:popover-open):not(dialog[open]) {
123594123585
display:none;
123595123586
}
123596-
dialog[popover]:not(:closed) {
123587+
123588+
dialog:popover-open {
123597123589
display:block;
123598123590
}
123599123591

@@ -123610,7 +123602,7 @@ dialog[popover]:not(:closed) {
123610123602
background-color: Canvas;
123611123603
}
123612123604

123613-
[popover]:open::backdrop {
123605+
:popover-open::backdrop {
123614123606
position: fixed;
123615123607
inset: 0;
123616123608
pointer-events: none !important;

0 commit comments

Comments
 (0)