From e84b2b396533f727c04d1879fa25db89c9b436e2 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Fri, 13 Dec 2024 03:35:40 +0000 Subject: [PATCH] Bug 1935777 [wpt PR 49576] - Remove :closed pseudo-class, a=testonly Automatic update from web-platform-tests 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} -- wpt-commits: cebbe649f588028ec15cf314acc425d77f45da81 wpt-pr: 49576 UltraBlame original commit: d511b3e7274c52c45e83b17623bdf496b4543b7b --- .../pseudo-classes-after-part.html | 14 -- ...en-closed-pseudo.html => open-pseudo.html} | 190 ------------------ ...-light-dismiss-invalidation.tentative.html | 24 ++- 3 files changed, 20 insertions(+), 208 deletions(-) rename testing/web-platform/tests/css/selectors/{open-closed-pseudo.html => open-pseudo.html} (70%) diff --git a/testing/web-platform/tests/css/css-shadow-parts/pseudo-classes-after-part.html b/testing/web-platform/tests/css/css-shadow-parts/pseudo-classes-after-part.html index 12aacd2730e15..78c6eea215723 100644 --- a/testing/web-platform/tests/css/css-shadow-parts/pseudo-classes-after-part.html +++ b/testing/web-platform/tests/css/css-shadow-parts/pseudo-classes-after-part.html @@ -239,20 +239,6 @@ mypart ) : -closed -" -) -; -test_valid_selector -( -" -: -: -part -( -mypart -) -: default " ) diff --git a/testing/web-platform/tests/css/selectors/open-closed-pseudo.html b/testing/web-platform/tests/css/selectors/open-pseudo.html similarity index 70% rename from testing/web-platform/tests/css/selectors/open-closed-pseudo.html rename to testing/web-platform/tests/css/selectors/open-pseudo.html index 2514a81112a72..148209e347437 100644 --- a/testing/web-platform/tests/css/selectors/open-closed-pseudo.html +++ b/testing/web-platform/tests/css/selectors/open-pseudo.html @@ -170,31 +170,6 @@ ' ) ; -assert_true -( -dialog -. -matches -( -' -: -closed -' -) -' -: -closed -should -match -when -the -dialog -is -closed -. -' -) -; assert_false ( dialog @@ -227,33 +202,6 @@ ( ) ; -assert_false -( -dialog -. -matches -( -' -: -closed -' -) -' -: -closed -should -not -match -after -dialog -. -open -( -) -. -' -) -; assert_true ( dialog @@ -292,33 +240,6 @@ ( ) ; -assert_false -( -dialog -. -matches -( -' -: -closed -' -) -' -: -closed -should -not -match -after -dialog -. -showModal -( -) -. -' -) -; assert_true ( dialog @@ -360,9 +281,6 @@ support : open -and -: -closed . ' ) @@ -386,31 +304,6 @@ ' ) ; -assert_true -( -details -. -matches -( -' -: -closed -' -) -' -: -closed -should -match -when -the -details -is -closed -. -' -) -; assert_false ( details @@ -443,32 +336,6 @@ = true ; -assert_false -( -details -. -matches -( -' -: -closed -' -) -' -: -closed -should -not -match -when -the -details -is -open -. -' -) -; assert_true ( details @@ -503,9 +370,6 @@ support : open -and -: -closed . ' ) @@ -530,31 +394,6 @@ ' ) ; -assert_true -( -select -. -matches -( -' -: -closed -' -) -' -: -closed -should -match -when -the -select -is -closed -. -' -) -; assert_false ( select @@ -596,32 +435,6 @@ requestAnimationFrame ) ; -assert_false -( -select -. -matches -( -' -: -closed -' -) -' -: -closed -should -not -match -when -the -select -is -open -. -' -) -; assert_true ( select @@ -656,9 +469,6 @@ support : open -and -: -closed . ' ) diff --git a/testing/web-platform/tests/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.html b/testing/web-platform/tests/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.html index 5344c25ab6364..31a9e7bace349 100644 --- a/testing/web-platform/tests/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.html +++ b/testing/web-platform/tests/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.html @@ -159,7 +159,11 @@ } select : -closed +not +( +: +open +) { background - @@ -252,7 +256,11 @@ should match : -closed +not +( +: +open +) at the start @@ -330,7 +338,11 @@ should match : -closed +not +( +: +open +) after clicking an @@ -406,7 +418,11 @@ should match : -closed +not +( +: +open +) after light dismiss