From be63004724457313a3dbd1b443f9353515fea60b Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Tue, 31 May 2022 04:26:13 +0000 Subject: [PATCH] Bug 1771532 [wpt PR 34238] - Rename :popup-open pseudo class to :top-layer, a=testonly Automatic update from web-platform-tests Rename :popup-open pseudo class to :top-layer This CL just does a rename for the :top-layer pseudo class. It does not change behavior, which is/was that this pseudo class only applies to elements using the Popup API [1], and not to all elements that might inhabit the top layer. That will need to wait for a CSSWG resolution. But for now, the [2] resolution means we should use this pseudo class for the Popup API prototype starting now. [1] https://open-ui.org/components/popup.research.explainer [2] https://github.com/openui/open-ui/issues/470#issuecomment-1138868669 Bug: 1307772 Change-Id: I81a89132b84346a360d7b580f5f39be9da697bdc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3668918 Commit-Queue: Dan Clark Auto-Submit: Mason Freed Reviewed-by: Dan Clark Cr-Commit-Position: refs/heads/main@{#1008430} -- wpt-commits: 4f944e32b46acfc971af4ce345fc6b511aea59fe wpt-pr: 34238 --- .../selectmenu-parts-structure.tentative.html | 10 +- .../popup-anchor-nesting.tentative.html | 8 +- .../popup-attribute-basic.tentative.html | 22 +- .../popups/popup-defaultopen-2.tentative.html | 4 +- .../popups/popup-defaultopen.tentative.html | 16 +- .../popups/popup-events.tentative.html | 10 +- .../popups/popup-focus.tentative.html | 34 +-- .../popup-inside-display-none.tentative.html | 2 +- .../popup-invoking-attribute.tentative.html | 4 +- ...pup-light-dismiss-on-scroll.tentative.html | 2 +- .../popups/popup-light-dismiss.tentative.html | 210 +++++++++--------- ...opup-not-keyboard-focusable.tentative.html | 8 +- .../popups/popup-removal-2.tentative.html | 8 +- .../popups/popup-removal.tentative.html | 4 +- .../popups/popup-shadow-dom.tentative.html | 24 +- .../popups/popup-stacking.tentative.html | 14 +- ...opup-top-layer-interactions.tentative.html | 2 +- .../popups/popup-types.tentative.html | 16 +- 18 files changed, 199 insertions(+), 199 deletions(-) diff --git a/testing/web-platform/tests/html/semantics/forms/the-selectmenu-element/selectmenu-parts-structure.tentative.html b/testing/web-platform/tests/html/semantics/forms/the-selectmenu-element/selectmenu-parts-structure.tentative.html index 927b45cdc15b3..7a11b57fcb786 100644 --- a/testing/web-platform/tests/html/semantics/forms/the-selectmenu-element/selectmenu-parts-structure.tentative.html +++ b/testing/web-platform/tests/html/semantics/forms/the-selectmenu-element/selectmenu-parts-structure.tentative.html @@ -208,13 +208,13 @@ const selectMenu1Popup = document.getElementById("selectMenu1-popup"); const selectMenu1Button = document.getElementById("selectMenu1-button"); const selectMenu1Child2 = document.getElementById("selectMenu1-child2"); - assert_false(selectMenu1Popup.matches(':popup-open')); + assert_false(selectMenu1Popup.matches(':top-layer')); selectMenu1Button.click(); - assert_false(selectMenu1Popup.matches(':popup-open'), "Clicking a button part that is a descendant of the listbox part should have no effect"); + assert_false(selectMenu1Popup.matches(':top-layer'), "Clicking a button part that is a descendant of the listbox part should have no effect"); assert_equals(selectMenu1.value, "one"); await clickOn(selectMenu1); - assert_true(selectMenu1Popup.matches(':popup-open')); + assert_true(selectMenu1Popup.matches(':top-layer')); await clickOn(selectMenu1Child2); assert_equals(selectMenu1.value, "two", "Clicking an