From 2ff2437c47e0c014e861e1d209c78642da560ffa Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Mon, 3 Apr 2023 08:54:32 -0700 Subject: [PATCH] Rename :open to :popover-open and remove :closed As discussed in https://github.com/w3c/csswg-drafts/issues/8637. Tests: https://github.com/web-platform-tests/wpt/pull/39222. --- source | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/source b/source index e6e005ed846..9e11deef691 100644 --- a/source +++ b/source @@ -72496,24 +72496,15 @@ Demos: not null, or containing no elements, if it is.

-
:open
+
:popover-open
-

The :open pseudo-class is defined to match - any HTML element whose The :popover-open pseudo-class is + defined to match any HTML element whose popover attribute is not in the no popover state and whose popover visibility state is showing.

-
:closed
-
-

The :closed pseudo-class is defined to - match any HTML element whose popover attribute is not in the no popover state and whose popover visibility - state is hidden.

-
-
:enabled

The :enabled pseudo-class must match any @@ -123590,10 +123581,11 @@ dialog::backdrop { background: rgba(0,0,0,0.1); } -[popover]:closed:not(dialog[open]) { +[popover]:not(:popover-open):not(dialog[open]) { display:none; } -dialog[popover]:not(:closed) { + +dialog:popover-open { display:block; } @@ -123610,7 +123602,7 @@ dialog[popover]:not(:closed) { background-color: Canvas; } -[popover]:open::backdrop { +:popover-open::backdrop { position: fixed; inset: 0; pointer-events: none !important;