Bug 289869

Summary: Can not click/tap on elements with user-select: none; to clear existing selections
Product: WebKit Reporter: ik
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Demo of the issue none

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
ik
Comment 1 2025-03-16 03:23:42 PDT
Radar WebKit Bug Importer
Comment 2 2025-03-23 03:24:20 PDT
Note You need to log in before you can comment on or make changes to this bug.