WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
289869
Can not click/tap on elements with user-select: none; to clear existing selections
https://bugs.webkit.org/show_bug.cgi?id=289869
Summary
Can not click/tap on elements with user-select: none; to clear existing selec...
ik
Reported
2025-03-16 03:23:14 PDT
Created
attachment 474581
[details]
Demo of the issue In Chrome and Safari, clicking/tapping on elements that have `user-select: none;` do not clear selections within other elements. Firefox behaves as expected, and lets you clear any selection by tapping anywhere. A demo of the issue is attached, can also be found here:
https://testcase.rejh.nl/testcase-user-select-none-clear-selection/
Reproduce: 1. Go to
https://testcase.rejh.nl/testcase-user-select-none-clear-selection/
2. Select some text in a message box (has `user-select: text;`) 3. Tap anywhere (except on a message box) to try and clear the selection Expected result: Tapping outside the selection should clear the selection. Actual result: The selection is not cleared.
Attachments
Demo of the issue
(247.23 KB, application/x-zip-compressed)
2025-03-16 03:23 PDT
,
ik
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
ik
Comment 1
2025-03-16 03:23:42 PDT
Chromium bug ticket:
https://issues.chromium.org/issues/403871208
Radar WebKit Bug Importer
Comment 2
2025-03-23 03:24:20 PDT
<
rdar://problem/147684300
>
ik
Comment 3
2025-06-24 00:41:41 PDT
Looks like this is not a bug but expected behavior:
> Attempting to start a selection in an element where user-select is none, such as by clicking in it or starting a drag in it, must not cause a pre-existing selection to become unselected or to be affected in any way. >
https://drafts.csswg.org/css-ui/#content-selection
And:
> Clicking in empty areas to undo the current selection will no longer be effective >
https://drafts.csswg.org/css-ui/#content-selection
Firefox has also adopted this behavior (bug no longer reproduces in Firefox 139.x) This issue can be closed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug