New issue
Advanced search Search tips

Issue 652716 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Text selection breaks with ::before content after a line break

Reported by m...@muanchiou.com, Oct 4 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Example URL:
http://output.jsbin.com/qetexujuja

Steps to reproduce the problem:
1. Open page
2. Use a mouse to select text from "HERE|" back to "can't" in the first example
3. See that it's not possible to select the first character "c"

What is the expected behavior?
Should be able to select the full text.

What went wrong?
When hovering over "c" the selection is gone. See the attached gif.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 53.0.2785.116  Channel: n/a
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 23.0 r0

This works in both Firefox and Safari, and doesn't work in Chrome Canary either.
 
beforeselect.gif
761 KB View Download
Components: -Blink Blink>TextSelection
Cc: jmukthavaram@chromium.org
Labels: -Type-Bug M-55 OS-Linux OS-Windows Type-Bug-Regression
Owner: e...@chromium.org
Status: Assigned (was: Unconfirmed)
Able to reproduce the issue in windows Chrome stable (53.0.2785.143), mac,Linux and  canary(55.0.2880.0).

Manual Bisect:

Good build:49.0.2573.0
Bad build:49.0.2574.0

Bisect tool info:

CL : https://chromium.googlesource.com/chromium/src/+log/206123a4b6cb14a8da596d2120761f1beda972fc..fa7fc32c5940dfd3d734ed3231b1295da4c3303e

Possible suspect:
https://chromium.googlesource.com/chromium/src/+/fa7fc32c5940dfd3d734ed3231b1295da4c3303e

eae @ Please reassign if this is not related to your change.

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

Components: -Blink>TextSelection Blink>Editing>Selection

Comment 4 by e...@chromium.org, Oct 21 2016

Cc: -jmukthavaram@chromium.org drott@chromium.org kojii@chromium.org e...@chromium.org
Components: Blink>Fonts
Labels: -Type-Bug-Regression Type-Bug
Owner: ----
Status: Available (was: Assigned)
Summary: Text selection breaks with ::before content after a line break (was: Text selection breaks with before content after a line break)
This has always been broken when the break is at the start of a line (the bisect result just changed text metrics slightly and shifted where that happens) and has to do with how we handle the fact that psedo elements shouldn't be selectable.

Comment 5 by yosin@chromium.org, Oct 4 2017

Labels: Pri-3
Project Member

Comment 6 by sheriffbot@chromium.org, Oct 4

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