New issue
Advanced search Search tips

Issue 850460 link

Starred by 2 users

Issue metadata

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

Blocked on:
issue 658129



Sign in to add a comment

Double clicking a word immediately following a span with inline-block style selects more than one words.

Reported by bhoyaran...@gmail.com, Jun 7 2018

Issue description

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

Steps to reproduce the problem:
1. Open this Js Fiddle: https://jsfiddle.net/aniket_bhoyar/oxankz7f
2. Double click on the word 'dolor'.
3. The word 'amor' alongwith the word 'dolor' is selected.

What is the expected behavior?
It should be selecting just the word 'dolor' which is adjacent to the span element containing the word 'amor'.

What went wrong?
Double click does not work as expected. Selects more than one word.

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 67.0.3396.79  Channel: stable
OS Version: 10.0
Flash Version: 

This defect has been highlighted on stackoverflow.com too. Here it is suggested that the use of zero-width space will work but this solution will not work in my scenario. The link is given below. 

https://stackoverflow.com/questions/43690276/text-selection-inside-inline-blocks-without-space-between?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
 
Chrome double click issue.html
341 bytes View Download

Comment 1 by tkent@chromium.org, Jun 7 2018

Components: -Blink>HTML Blink>Editing>Selection
Labels: FoundIn-66 FoundIn-67 FoundIn-68 Needs-Traige-M67 Needs-Bisect Target-69 FoundIn-69
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on 	66.0.3359.181, 67.0.3396.79 , 	68.0.3440.15 and 69.0.3451.0. 
Cc: vamshi.kommuri@chromium.org
Labels: -Needs-Bisect -FoundIn-66 -FoundIn-67 -FoundIn-68 Triaged-ET M-69 OS-Linux OS-Mac
Able to reproduce the issue on reported chrome version 67.0.3396.79 and on the latest canary using Mac 10.13.1, Windows 10 and Ubuntu 14.04.
As the issue is seen from M60(60.0.3112.0) considering it as Non-Regression and removing Needs-Bisect label. 
Note: Changing the labels accordingly as this is a Non-Regression issue, please add them back if needed.

Thanks!

Comment 4 by yosin@chromium.org, Jun 13 2018

Blockedon: 658129
Labels: -Type-Bug -Pri-2 Pri-3 Type-Feature
Status: Available (was: Untriaged)
Since this behavior is inherited from WebKit, we don't want to change 
this behavior to keep same behavior as WebKit.

Please use "user-select:contain" to extend selection not to cross over
inline-block boundary.

Please add star to issue 658129.

Comment 5 Deleted

As per above suggestion, I am trying to use "user-select:contain" CSS property,I can see warring message like "Invalid property value" in browser. Although I am using it forcefully it's not working as expected.

Sign in to add a comment