New issue
Advanced search Search tips

Issue 778896 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

display:inline-block in ::before makes HitTest to return wrong position

Reported by runem...@gmail.com, Oct 27 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.18 Safari/537.36

Example URL:
https://tokeneconomy.co/the-analysis-filecoin-doesnt-want-you-to-read-e60d5243f17c (drag backwards on the list items)

Steps to reproduce the problem:
1. Open the file attached
2. Drag to select, starting from the a's and going towards the x's
3. Move the mouse onto the x's and notice how the selection jumps to the right

What is the expected behavior?
The selection stops right after the x's without selecting anything (remove either the "display: inline-block;" or "margin-left" to fix this).

What went wrong?
The selection jumps towards the right, until it stops when the x's are reached a second time. Changing the "before" to an "after" and the "margin-left: -100px" to a "margin-right: 100px" also causes the same problem.

Does it occur on multiple sites: N/A

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: 63.0.3239.18  Channel: beta
OS Version: 6.3
Flash Version:
 
example.html
487 bytes View Download

Comment 1 by ajha@chromium.org, Oct 27 2017

Cc: ajha@chromium.org
Components: Blink>Editing>Selection
Labels: -Type-Compat M-64 Needs-Triage-M63 OS-Linux OS-Mac Type-Bug
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on the latest canary(64.0.3251.0) of Windows-10, Mac OS 10.12.6 and Linux Ubuntu 14.04. This is non-regression issue seen on Chrome on older chrome version: 50.0.2646.0 as well.

Below is the other browsers behavior:

Firefox:
>Only the a's are selected moving the mouse from right to left and no jumpback.
IE:
> Everything is selected from a's to x's. Selection jumps directly to the end of x's from the end of a's when moving the mouse from right to left.


Comment 2 by yosin@chromium.org, Oct 30 2017

Components: -Blink>Editing>Selection Blink>HitTesting
Summary: display:inline-block in ::before makes HitTest to return wrong position (was: Selection jumps backwards)
Route to Blink>HitTesting.

Re-produce on M61.
Cc: schenney@chromium.org pdr@chromium.org
Status: Available (was: Untriaged)
Maybe the fix for hit testing pseudo elements needs to be expanded, as was suggested by pdr@ but for which I could find no reproduction case.

Comment 4 by pdr@chromium.org, Oct 30 2017

I played with this in firefox and edge and they don't really handle this particularly well either. Edge only allows forward selection, and firefox doesn't select the before content at all. This area could use some compatibility cleanup.
Project Member

Comment 5 by sheriffbot@chromium.org, Oct 31

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