From 250893cc40076d903c6ac7413d2a502ff8b878e7 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Sat, 3 Sep 2022 09:40:35 +0000 Subject: [PATCH] Bug 1786053 [wpt PR 35535] - Simplify pop-up CSS rules, and add !important to display:none, a=testonly Automatic update from web-platform-tests Simplify pop-up CSS rules, and add !important to display:none Per the resolution and discussion at [1], we've decided to simplify the UA rules for pop-up attribute selectors, to capture *any* `popup` attribute value. Additionally (and this part is tentative), it looks like we'll likely resolve to put back `!important` on display:none, so that `[popup] {display:flex}` can work. [1] https://github.com/openui/open-ui/issues/561#issuecomment-1219836523 Bug: 1307772 Change-Id: If3d52cce0c9cbd3c6134ff57836d65c93eb12c48 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3840811 Auto-Submit: Mason Freed Commit-Queue: Mason Freed Reviewed-by: David Baron Cr-Commit-Position: refs/heads/main@{#1037921} -- wpt-commits: a0ece3bbdbfdf1bd0f66f841b06d54c1d927af0a wpt-pr: 35535 --- .../popups/popup-appearance-ref.tentative.html | 3 +-- .../semantics/popups/popup-appearance.tentative.html | 4 ++-- .../popups/popup-attribute-basic.tentative.html | 10 ++++++---- .../popups/popup-hidden-display-ref.tentative.html | 11 ----------- .../popups/popup-hidden-display.tentative.html | 5 +++-- .../html/semantics/popups/resources/popup-styles.css | 7 +------ 6 files changed, 13 insertions(+), 27 deletions(-) diff --git a/testing/web-platform/tests/html/semantics/popups/popup-appearance-ref.tentative.html b/testing/web-platform/tests/html/semantics/popups/popup-appearance-ref.tentative.html index 95f43dba293b4..b8ebba794d2ce 100644 --- a/testing/web-platform/tests/html/semantics/popups/popup-appearance-ref.tentative.html +++ b/testing/web-platform/tests/html/semantics/popups/popup-appearance-ref.tentative.html @@ -12,9 +12,8 @@

There should be four pop-ups with similar appearance, and - the word Unknown with no special styling.

+ the word "Unknown" should not be visible on the page.

Blank
Auto
Hint
Manual
-
Unknown
diff --git a/testing/web-platform/tests/html/semantics/popups/popup-appearance.tentative.html b/testing/web-platform/tests/html/semantics/popups/popup-appearance.tentative.html index 84421317e5a1c..4acc276c16c36 100644 --- a/testing/web-platform/tests/html/semantics/popups/popup-appearance.tentative.html +++ b/testing/web-platform/tests/html/semantics/popups/popup-appearance.tentative.html @@ -14,13 +14,13 @@

There should be four pop-ups with similar appearance, and - the word Unknown with no special styling.

+ the word "Unknown" should not be visible on the page.

Blank
Auto
Hint
Manual
- +
Unknown