[Webkit-unassigned] [Bug 80159] -webkit-user-select:none not respected when copying content

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 18 12:09:26 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=80159





--- Comment #8 from Ryosuke Niwa <rniwa at webkit.org>  2013-01-18 12:11:14 PST ---
(In reply to comment #7)
> Two interesting differences between -webkit-user-select:none and -moz-user-select:none (and the related -moz-user-select:-moz-none) is the highlighting and copying of text:
> 
> * WebKit: CMD+A (or dragging a selection) will highlight the text surrounding a `none` span, but NOT the `none` text.
> * Gecko: CMD+A (or dragging a selection) will highlight all text, INCLUDING the `none` text.

Gecko's behavior is counter-intuitive here. Isn't the whole point of user-select: none so that the text is never selected/highlighted?

> * WebKit: CMD+C will copy all text, INCLUDING the `none` text.
> * Gecko: CMD+C will copy the text surrounding a `none` span, but NOT the `none` text.

Gecko's behavior makes sense here. I previously said that I'm afraid there might be a compat. issue but I think it makes sense to match Gecko's behavior on the basis that the user wouldn't expect unhighlighted text to be included when they hit cmd/ctl+c.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list