RESOLVED DUPLICATE of bug 208682 293829
Text selection is allowed to start from a `-webkit-user-select: none` element
https://bugs.webkit.org/show_bug.cgi?id=293829
Summary Text selection is allowed to start from a `-webkit-user-select: none` element
Tim Guan-tin Chien [:timdream]
Reported 2025-05-30 14:38:38 PDT
Considering the following HTML: ``` <div style="-webkit-user-select:none">start selection here</div> <div>should not select text here</div> ``` data:text/html,<div%20style="-webkit-user-select:none">start%20selection%20here</div><div>should%20not%20select%20text%20here</div> I should not be allowed to select the text on the second line when I start dragging from the first line and continue to the second line. Related spec text: > 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-05-30 14:39:08 PDT
Tim Nguyen (:ntim)
Comment 2 2025-05-30 15:58:58 PDT
*** This bug has been marked as a duplicate of bug 208682 ***
Note You need to log in before you can comment on or make changes to this bug.