Bug 293829
Summary: | Text selection is allowed to start from a `-webkit-user-select: none` element | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tim Guan-tin Chien [:timdream] <timdream> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ntim, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 18 | ||
Hardware: | Mac (Apple Silicon) | ||
OS: | macOS 15 | ||
URL: | data:text/html,<div%20style="-webkit-user-select:none">start%20selection%20here</div><div>should%20not%20select%20text%20here</div> |
Tim Guan-tin Chien [:timdream]
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/152335763>
Tim Nguyen (:ntim)
*** This bug has been marked as a duplicate of bug 208682 ***