Implement user-select: contain, which should contain the selection range
Categories
(Core :: Layout, enhancement, P3)
Tracking
()
People
(Reporter: timdream, Unassigned)
References
()
Details
Attachments
(1 file)
174.27 KB,
image/png
|
Details |
Comment 1•10 years ago
|
||
Updated•10 years ago
|
Updated•10 years ago
|
Updated•10 years ago
|
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Updated•10 years ago
|
Comment 5•10 years ago
|
||
Comment 6•8 years ago
|
||
Comment 7•6 years ago
|
||
Comment 8•5 years ago
|
||
We have a use case in devtools, especially in the Netmonitor, where we would like to restrict the scope of "Select All" (Ctrl/Cmd+A) to the blue area where the selection was initiated. The red areas would have user-select: none
.
user-select: contain
looks like it would be a good fit.
Comment 9•5 years ago
|
||
To be clear this is a feature, right? We don't implement the value right now.
This should be somewhat similar to what nsIContent::HasIndependentSelection
does now, I guess, though there are a few callers that seem to make assumptions about what nodes can have that bit set...
Comment 10•5 years ago
|
||
Yep, definitely a feature request.
Another use case I can think of is code editors and rich text editors (not using textarea) embedded in an HTML page. Though we don't need user-select: contain
for that in DevTools since CodeMirror intercepts and handles all text selection anyway.
Updated•2 years ago
|
Description
•