Skip to content

Commit 498acc0

Browse files
josepharharChromium LUCI CQ
authored and
Chromium LUCI CQ
committed
Add user-select:none to customizable select
Mouse-based text selection doesn't work in customizable select. Based on this issue, we should at least set user-select:none in the UA stylesheet: whatwg/html#10876 Bug: 385069402 Change-Id: I87cbfde4cfde67c7b1fe131a6070311034143bd1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6111420 Commit-Queue: Joey Arhar <[email protected]> Reviewed-by: Mason Freed <[email protected]> Cr-Commit-Position: refs/heads/main@{#1402577}
1 parent 7519382 commit 498acc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

third_party/blink/renderer/core/html/resources/customizable_select.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ select:not(:-internal-list-box) {
3030
display: -internal-appearance-auto-base-select(inline-block, inline-flex);
3131
gap: -internal-appearance-auto-base-select(initial, 0.5em);
3232
border-radius: -internal-appearance-auto-base-select(0, 0.5em);
33-
3433
align-items: -internal-appearance-auto-base-select(center, unset);
34+
/* https://github.com/whatwg/html/issues/10876 */
35+
user-select: -internal-appearance-auto-base-select(auto, none);
3536
}
3637

3738
select:not(:-internal-list-box) > button:first-child {

0 commit comments

Comments
 (0)