display:inline-block in ::before makes HitTest to return wrong position
Reported by
runem...@gmail.com,
Oct 27 2017
|
|||||
Issue descriptionUserAgent: 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:
,
Oct 30 2017
Route to Blink>HitTesting. Re-produce on M61.
,
Oct 30 2017
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.
,
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.
,
Oct 31
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
,
Nov 2
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by ajha@chromium.org
, Oct 27 2017Components: Blink>Editing>Selection
Labels: -Type-Compat M-64 Needs-Triage-M63 OS-Linux OS-Mac Type-Bug
Status: Untriaged (was: Unconfirmed)