Created attachment 79881 [details] Testcase When users select text using a rapid mouse movement that extends outside of the contenteditable tag the selection behaviour is not always what a user expects: ie. the click mid way through text, drag (to select) all the way beyond the left (start) of the contenteditable, selection stops several characters before the start of the contenteditable contents. Attached test case includes three content editable areas: h1 that contains a <div>, an h1 that contains only text and a p tag.
Interesting that this doesn't happen with non-editable text - or even if position:absolute is added to contenteditable in the attached example. This also doesn't happen in Bugzilla textarea (where you're writing your comment).
See also: bug 56213.
(In reply to comment #1) > Interesting that this doesn't happen with non-editable text - or even if position:absolute is added to contenteditable in the attached example. This also doesn't happen in Bugzilla textarea (where you're writing your comment). This bug is to do with the way we avoid selection extending across editing boundary.
This is a duplicate of the bug 55552. I'm closing this one since the bug 55552 has patches posted. *** This bug has been marked as a duplicate of bug 55552 ***
Okay, let's make this bug depend on the bug 55552 and add a layout test separately. I've already uploaded a DRT test on the bug 55552 so I'll upload a patch as soon as the bug 55552 is fixed.
*** This bug has been marked as a duplicate of bug 56213 ***