From f8fd46620944337d4e79e3aa97b8582cdfc4db0b Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Thu, 24 Mar 2022 11:55:33 +0000 Subject: [PATCH] Bug 1760192 [wpt PR 33178] - [inert] Set user-select:text on modal dialogs and fullscreen elements, a=testonly Automatic update from web-platform-tests [inert] Set user-select:text on modal dialogs and fullscreen elements Modal dialogs and fullscreen elements mark all elements outside of them as inert. That makes them have a used value of "user-select: none". But modal dialogs and fullscreen elements are not inert, so by default they got "user-select: auto". This resolves to "none" since the used value on the parent element is "none". So modal dialogs and fullscreen elements were not selectable. This patch addresses the problem by setting "user-select: text" on UA origin. There is a somewhat similar precedent where the CSSWG resolved to set "visibility: visible" on modal dialogs: https://github.com/w3c/csswg-drafts/issues/6939#issuecomment-1016657928 Bug: 1305797 TEST=external/wpt/html/semantics/interactive-elements/the-dialog-element/modal-dialog-selection.html Change-Id: I6fb00c25559dfefcf931be535ddf4128864c71ae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3521788 Reviewed-by: Rune Lillesveen Commit-Queue: Oriol Brufau Cr-Commit-Position: refs/heads/main@{#981078} -- wpt-commits: 7106c6106d2a78801d4b2fa1aab589322caed7af wpt-pr: 33178 --- .../modal-dialog-selection.html | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/modal-dialog-selection.html diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/modal-dialog-selection.html b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/modal-dialog-selection.html new file mode 100644 index 0000000000000..ab8dc4fd9842a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/modal-dialog-selection.html @@ -0,0 +1,50 @@ + + +Content selection in modal dialog + + + + + + + +123456789A + + + + + + +