From ea0a266e484a34030cf057c3e22c51e1c53b75d7 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Sun, 20 Nov 2022 16:05:58 +0000 Subject: [PATCH] Bug 1800158 [wpt PR 36918] - Disallow "combined" top layer APIs, a=testonly Automatic update from web-platform-tests Disallow "combined" top layer APIs As resolved in [1], the top layer APIs, when used on the *same element*, should disallow the second API usage. For example, with an element like ``, this can get to the top layer two ways: 1) `dialog.showModal()` 2) `dialog.showPopover()` With this CL, the first such call will succeed, and the second will throw an exception. [1] https://github.com/openui/open-ui/issues/520#issuecomment-1270626461 Bug: 1307772 Change-Id: If968211a3c69e72b9e734cdff93b8cf96e01860c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4017895 Auto-Submit: Mason Freed Commit-Queue: Mason Freed Reviewed-by: Joey Arhar Cr-Commit-Position: refs/heads/main@{#1070452} -- wpt-commits: dbb2c32925faea05c1807cce2174ac1030bdc04d wpt-pr: 36918 --- ...over-top-layer-combinations.tentative.html | 124 ++++++++++++++++++ ...over-top-layer-interactions.tentative.html | 16 +-- .../popovers/resources/popover-utils.js | 13 ++ 3 files changed, 139 insertions(+), 14 deletions(-) create mode 100644 testing/web-platform/tests/html/semantics/popovers/popover-top-layer-combinations.tentative.html diff --git a/testing/web-platform/tests/html/semantics/popovers/popover-top-layer-combinations.tentative.html b/testing/web-platform/tests/html/semantics/popovers/popover-top-layer-combinations.tentative.html new file mode 100644 index 0000000000000..66106ce17d9af --- /dev/null +++ b/testing/web-platform/tests/html/semantics/popovers/popover-top-layer-combinations.tentative.html @@ -0,0 +1,124 @@ + + +Popover combined with dialog/fullscreen behavior + + + + + + + + +
+ Popover Dialog + Open Non-modal Popover Dialog + Defaultopen Popover Dialog + Defaultopen and Open Popover Dialog +
Fullscreen Popover
+ Fullscreen Popover Dialog + Fullscreen Open Non-modal Popover Dialog +
+ + + + + diff --git a/testing/web-platform/tests/html/semantics/popovers/popover-top-layer-interactions.tentative.html b/testing/web-platform/tests/html/semantics/popovers/popover-top-layer-interactions.tentative.html index bdc550b423e5f..50a21be7f7723 100644 --- a/testing/web-platform/tests/html/semantics/popovers/popover-top-layer-interactions.tentative.html +++ b/testing/web-platform/tests/html/semantics/popovers/popover-top-layer-interactions.tentative.html @@ -7,6 +7,7 @@ +