New issue
Advanced search Search tips

Issue 735138 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 17528
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Hard to select some text that should be easy to select.

Reported by mwich...@gmail.com, Jun 20 2017

Issue description

Chrome Version       : 59.0.3071.104
OS Version: OS X 10.12.5
URLs (if applicable) : http://www.newyorker.com/magazine/2011/10/03/famous-names
Other browsers tested:
     Safari 10.1.1: OK
      Firefox 54.0: OK

*** Please look at the attached video to see the problems better. ***

FIRST PROBLEM
Start selecting by mouse dragging from the end of the first line of second paragraph, backwards. As you go a little bit taller, there’s a zone where it selects the rest of the second paragraph, instead of what you’re pointing at. It’s jarring and confusing.

SECOND PROBLEM
Start selecting by mouse dragging from the end of first paragraph, trying to get last sentence. It’s impossible to select the first “T” just by dragging across it.

UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36



 
2017-06-20 11_30_57.gif
6.6 MB View Download
This issue appears to be triggered by a parent element having a ::first-letter selector. I've made a test case here: https://codepen.io/anon/pen/vZmmaL

Even changing something non-layout-related, such as color, causes troublesome selection behavior.

Comment 2 by woxxom@gmail.com, Jun 20 2017

An observation using codepen sample in c#1:

Chrome prior to 48.0.2556.0 allowed selecting letters in "Sed" after the first "S".
It was changed between 358019 (one letter excluded) and 358023 (entire word excluded)
https://chromium.googlesource.com/chromium/src/+log/89aa4257..b4837882?pretty=fuller
Suspecting r358020 "Make most{Backward,Forward}CaretPosition() to handle first-letter pseudo element"
Note, both old and new behavior are incorrect.

BTW, Internet Explorer 11 correctly handles selection in this case.

Comment 3 by woxxom@gmail.com, Jun 20 2017

* This was reported 8 years ago in issue 17528, which is still open.
* The amount of unselectable letters depends on number of whitespace characters in HTML after the opening tag, <p> in this case is followed by 3 characters. Reported and explained in  issue 406218 .
* Also related:  issue 734057 
Labels: Needs-Triage-M59
Components: Blink>Editing>Selection
Labels: -Needs-Triage-M59

Comment 6 by yosin@chromium.org, Jul 7 2017

Mergedinto: 17528
Status: Duplicate (was: Unconfirmed)
As #c3 said :first-letter doesn't work well.
We'll change :first-letter fix in layout NG, since layout NG will support
mapping from rendered characters and DOM text node.

Sign in to add a comment