Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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: w3c/csswg-drafts#6939 (comment) Bug: 1305797 TEST=external/wpt/html/semantics/interactive-elements/the-dialog-element/modal-dialog-selection.html (cherry picked from commit 2f99d43) Change-Id: I6fb00c25559dfefcf931be535ddf4128864c71ae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3521788 Reviewed-by: Rune Lillesveen <[email protected]> Commit-Queue: Oriol Brufau <[email protected]> Cr-Original-Commit-Position: refs/heads/main@{#981078} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3529074 Auto-Submit: Oriol Brufau <[email protected]> Commit-Queue: Rubber Stamper <[email protected]> Bot-Commit: Rubber Stamper <[email protected]> Cr-Commit-Position: refs/branch-heads/4896@{#606} Cr-Branched-From: 1f63ff4-refs/heads/main@{#972766}
- Loading branch information