From de3117302dac352b84861eb3e0fa204a0778fbb6 Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Fri, 6 Dec 2024 14:10:00 -0800 Subject: [PATCH] Remove :closed pseudo-class This was resolved here: https://github.com/w3c/csswg-drafts/issues/11039#issuecomment-2491673891 Change-Id: Icfe2bbf5a7b87c50a52cedae98021425a5121429 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6049400 Reviewed-by: Tommy Nyquist Auto-Submit: Joey Arhar Commit-Queue: Joey Arhar Reviewed-by: David Baron Cr-Commit-Position: refs/heads/main@{#1393165} --- .../pseudo-classes-after-part.html | 1 - ...en-closed-pseudo.html => open-pseudo.html} | 20 +++---------------- ...-light-dismiss-invalidation.tentative.html | 8 ++++---- 3 files changed, 7 insertions(+), 22 deletions(-) rename css/selectors/{open-closed-pseudo.html => open-pseudo.html} (63%) diff --git a/css/css-shadow-parts/pseudo-classes-after-part.html b/css/css-shadow-parts/pseudo-classes-after-part.html index 60292d27a71c26..873df771398760 100644 --- a/css/css-shadow-parts/pseudo-classes-after-part.html +++ b/css/css-shadow-parts/pseudo-classes-after-part.html @@ -15,7 +15,6 @@ test_valid_selector("::part(mypart):any-link"); test_valid_selector("::part(mypart):autofill"); test_valid_selector("::part(mypart):checked"); -test_valid_selector("::part(mypart):closed"); test_valid_selector("::part(mypart):default"); test_valid_selector("::part(mypart):defined"); test_valid_selector("::part(mypart):dir(ltr)"); diff --git a/css/selectors/open-closed-pseudo.html b/css/selectors/open-pseudo.html similarity index 63% rename from css/selectors/open-closed-pseudo.html rename to css/selectors/open-pseudo.html index 9301fd2f41624c..0f3b9f3c37966f 100644 --- a/css/selectors/open-closed-pseudo.html +++ b/css/selectors/open-pseudo.html @@ -17,53 +17,39 @@ diff --git a/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.html b/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.html index c9631d92e1258b..749fd8cf27580b 100644 --- a/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.html +++ b/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.html @@ -14,7 +14,7 @@ select { background-color: rgb(0, 0, 255); } -select:closed { +select:not(:open) { background-color: rgb(0, 255, 0); } select:open { @@ -29,7 +29,7 @@