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 descriptionUserAgent: 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
,
Jun 7 2018
Able to reproduce the issue on 66.0.3359.181, 67.0.3396.79 , 68.0.3440.15 and 69.0.3451.0.
,
Jun 8 2018
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!
,
Jun 13 2018
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.
,
Dec 11
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 |
||||
Comment 1 by tkent@chromium.org
, Jun 7 2018