New issue
Advanced search Search tips

Issue 590695 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Incorrect text selection when moving mouse from input to container absoulte positioned :before element

Reported by yavano...@yandex-team.ru, Feb 29 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 YaBrowser/16.3.0.4716 (beta) Yowser/2.5 Safari/537.36

Example URL:
http://jsbin.com/suhajuyogi/3/edit?html,css,output

Steps to reproduce the problem:
1. Move mouse cursor to the right of digit "3" in text input
2. Press and hold left mouse button
3. Move mouse button to the left of whole text input
4. You now selected whole text in text input
5. Now try to move cursor down, lower then bottom text input border

What is the expected behavior?
Expected than when mouse goes lower than text input selection will be removed.

What went wrong?
In fact selection will be removed only when mouse goes 50px lower than input box (value of "top" property of before element).

Same problem when "top" have negative value. Selection will be removed immediately after mouse pointer cross left border of input box.

If i replace :before pseudo element with normal element ".background" (uncomment .background selector and comment :before line) problem goes away.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? N/A 

Chrome version: 47.0.2526.111  Channel: n/a
OS Version: 
Flash Version: Shockwave Flash 11.2 r999
 

Comment 1 by tkent@chromium.org, Feb 29 2016

Components: -Blink Blink>TextSelection

Comment 2 by yosin@chromium.org, Mar 4 2016

Labels: -OS-Linux OS-All
Status: Available (was: Unconfirmed)

Comment 3 by yosin@chromium.org, Mar 4 2016

Labels: Needs-Feedback
Status: Unconfirmed (was: Available)
I could not see behavior described in #1. Selection is still available where ever I move mouse pointer in 48.0.2564.116 (Official Build)

Could you provide screenshot or video?

Comment 4 by yosin@chromium.org, Mar 4 2016

Summary: NEEDS_FEEDBACK: Incorrect text selection when moving mouse from input to container absoulte positioned :before element (was: Incorrect text selection when moving mouse from input to container absoulte positioned :before element)
Here is video. When i use :before element for background selection removes only when mouse cursor goes 50px lower input box.

pseudo-element-hover.ogv
2.1 MB Download
Project Member

Comment 6 by sheriffbot@chromium.org, Mar 10 2016

Labels: -Needs-Feedback Needs-Review
Owner: yosin@chromium.org
Status: Assigned (was: Unconfirmed)
Thank you for providing more feedback. Assigning to requester "yosin@chromium.org" for another review.

For more details visit https://sites.google.com/a/chromium.org/dev/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Review Needs-Bisect Needs-TestConfirmation
Tagging for a repro and bisect if needed.
Cc: ashej...@chromium.org
Labels: -Needs-TestConfirmation -Needs-Bisect Needs-Feedback
Thanks for the video, much appreciated.

I retested the above issue on All-OS (Windows 7, Mac 10.11.4 & Ubuntu 14.04)and was not able to reproduce the above issue using chrome versions- 50.0.2661.94 , 51.0.2704.29 & 52.0.2720.0. The selection doesn't get remove when the mouse cursor goes 50px lower to the input box.

I would request you to please try the above issue on latest chrome version and let us know if the issue still persists. Removing the bisect & confirmation label for now, do add if required.

Attach is the video of the same.

I really appreciate your help.

Thank you!
Retest-29April.ogv
1.8 MB Download
Thanks for reply.

Maybe i've wrote description too confusing. I've recorded another video with better quality and two cases.

First, when green square was made with regular <div> element selection removes immediately after cursor goes lower than text box field.

Second, when green square was made with wrapper:before pseudo element, i'm expecting same behaviour but it looks like left and top css values was subtracted from mouse pointer coordinates and i can move cursor down, without removing selection.


Here is another video. I will be glad to help if I can.
selection-problems.ogv
1.9 MB Download

Comment 10 by tkent@chromium.org, Oct 12 2016

Components: -Blink>TextSelection Blink>Editing>Selection
Status: Available (was: Assigned)
Owner: ----

Comment 13 by yosin@chromium.org, May 25 2017

Labels: -Needs-Feedback
Summary: Incorrect text selection when moving mouse from input to container absoulte positioned :before element (was: NEEDS_FEEDBACK: Incorrect text selection when moving mouse from input to container absoulte positioned :before element)
Labels: Pri-3
Cc: -ashej...@chromium.org
Project Member

Comment 16 by sheriffbot@chromium.org, Nov 2

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment