New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 654266 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

Selecting text with keyboard moves contents of overflow:hidden

Reported by mik.jo...@gmail.com, Oct 9 2016

Issue description

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

Example URL:
http://history-test.webzdarma.cz/text-select-moves-div.html

Steps to reproduce the problem:
1. Go to http://history-test.webzdarma.cz/text-select-moves-div.html
2. Select the first word.
3. By repeatedly pressing Shift + Right Arrow, expand the selection beyond the gray div.

What is the expected behavior?
The innter div stays where it is.

What went wrong?
The inner div moves. Note this doesn't happen when you try to select text with mouse only.

Does it occur on multiple sites: N/A

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: stable
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0

Firefox continues selecting the text even when it's invisible (can be copied and pasted), but doesn't move the inner div.
Edge doesn't allow selecting text with keyboard or I don't know how to do it.
 
Cc: sureshkumari@chromium.org
Labels: M-55 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue with above steps on Windows-10, Mac-10.12, and 
ubuntu-14.04 using chrome stable version 53.0.2785.143 and canary (56.0.2884.0).

 Also able to reproduce the issue on earlier version of chrome M-30.0.1549.0.

This is non-regession issue and marking it as untraiged.
Cc: pbomm...@chromium.org
Unable to reproduce the issue with Chrome Verisons 54.0.2840.99, 55.0.2883.52 and 56.0.2920.0 on Windows 7,10, Mac and Linux. 

mik.jozef@ please let me know if you are still able to reproduce the issue.

Comment 3 by mik.jo...@gmail.com, Nov 16 2016

I can still reproduce the issue. Note that it only moves if the selected range actually changes, so if I select the whole text with mouse (this is possible for me even though part of it is invisible) and then press Shift + Right Arrow, nothing happens. Trying both right and left arrow should reproduce this issue reliably, I guess.

My current chrome version: 54.0.2840.99 m (64-bit)

I just downloaded Canary and it still happens on Version 56.0.2920.0 canary (64-bit)
Components: Blink>HTML
Labels: -M-55 -Type-Compat M-57 Type-Bug
Just to update, able to reproduce the issue on chrome version 57.0.2926.0 on MAC 10.12.1, Ubuntu 14.04, Windows 10. 

Since issue is a non regression, moving from M55 to M57.

Adding Blink>HTML component, so that the issue gets addressed.

Thanks.!
Components: -Blink>HTML Blink>Scroll
Labels: Hotlist-Interop
I can reproduce this on Chrome Linux 55.0.2883.75 (Official Build) (64-bit).
It looks like the inner DIV is scrolled and painted on top of the outer div's border.

I'm not sure what behavior is correct (it paints over the border on the right hand side, for example.) Can someone from layout/scroll comment?

Comment 6 by phistuck@gmail.com, Dec 12 2016

If you play with the arrow keys (along with Shift) in order to extend, narrow and extend the selection (press many times), you end up with no selection and no option to create a selection anymore (using the keyboard, that is), until you re-select using the mouse.

Comment 7 by phistuck@gmail.com, Dec 12 2016

(On Windows 7)

Comment 8 by phistuck@gmail.com, Dec 12 2016

Oh, because I narrowed it too much until there was no selection, so nothing to extend anymore. Forget it (or not, since Firefox does let you extend the selection again after that).
Cc: skobes@chromium.org dtapu...@chromium.org
Components: Blink>Editing>Selection
Status: Available (was: Untriaged)
It seems that we are ignoring "overflow:hidden" in our keyboard text selection logic. As pointed out by the original report this does not happen with mouse  or touch. I think we should be consistent here and according to spec [1] we should not actually scroll as a result of user input.


Safari has the same behavior as Chrome but Firefox does not scroll but updates the text selection. Perhaps we can match Firefox or not update the selection passed the clipped boundary either.

Adding Blink>Editing>Selection label.
skobes@ do you know who will be the right owner for this?

[1] https://drafts.csswg.org/css-overflow-3/#valdef-overflow-hidden

"This value indicates that the box’s content is clipped to its padding box and that the UA must not provide any scrolling user interface to view the content outside the clipping region, nor allow scrolling by direct intervention of the user, such as dragging on a touch screen or using the scrolling wheel on a mouse."


Labels: OS-Chrome
Labels: Pri-3
Project Member

Comment 12 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)
Still an issue in Q4 2018 check-in.

Sign in to add a comment