New issue
Advanced search Search tips

Issue 734057 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 17528
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

double click on word selects word and first character of next word

Reported by jaegerj...@gmail.com, Jun 16 2017

Issue description

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

Steps to reproduce the problem:
1. open website with text
2. double click on one word

reproducable in the following article:
http://www.faz.net/aktuell/wissen/weltraum/neuer-test-der-relativitaetstheorie-15058533.html

What is the expected behavior?
only one word is selected

What went wrong?
the selection includes the word and the first character of the next word

Did this work before? N/A 

Chrome version: 61.0.3131.0  Channel: canary
OS Version: 10.0
Flash Version: 

this bug is not reproducable on other sites. Perhaps it is some bad interaction with the Javascript code of this site.
 
Labels: Needs-Triage-M61
I found the root cause of this bug:
p::first-letter
affects the text selection. See my minimal testcase.
testcase.html
964 bytes View Download

Comment 3 by ajha@chromium.org, Jun 22 2017

Cc: ajha@chromium.org
Components: -UI Blink>Editing
Labels: -Type-Bug -Pri-2 -Needs-Triage-M61 M-61 OS-Linux OS-Mac Pri-1 Type-Bug-Regression
Owner: xiaoche...@chromium.org
Status: Assigned (was: Unconfirmed)
Able to reproduce the issue on the latest canary(61.0.3138.0) & the latest stable(59.0.3071.109) on Windows-10, Mac OS 10.12.5 and Linux Ubuntu 14.04.

Regressed in M-57.

Last good build: 57.0.2942.0
First bad build: 57.0.2943.0

Changelog:
===========
https://chromium.googlesource.com/chromium/src/+log/a253a1bb314e9563c8fc45d3bf6b9651855e0f45..5185769b9ba7e9239d68c7dc672a27dd19b1685f

xiaochengh@: Could you please take a look at this.

Thank you!
Mergedinto: 406218
Status: Duplicate (was: Assigned)
This is not a regression. We used to have two bugs negating each other. My CL fixed one of them.

The text selection is correct if you check the value of window.getSelection(). The remaining bug is that selection painting doesn't work correctly with :first-letter -- it's shifted by the number of characters in :first-letter.
Mergedinto: -406218 17528
Sorry, should be this bug instead.

Sign in to add a comment