New issue
Advanced search Search tips

Issue 674567 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Radio input keyboard navigation does not scroll parent element

Reported by i...@nathanmarks.io, Dec 15 2016

Issue description

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

Steps to reproduce the problem:
1. https://jsfiddle.net/6bugmpkw/
2. Tab into or select a radio
3. Use the arrow keys to navigate the radios

What is the expected behavior?
The parent container should scroll to maintain accessibility standards while using the native radio input keyboard controls.

Firefox does this and it provides a much better experience for keyboard users.

Also note, that chrome DOES scroll the container for other elements that are focused. Here is an example with a link underneath the radios. You'll notice that if you tab to the link, it will scroll the parent container: https://jsfiddle.net/y17cpun9/

What went wrong?
The radio input focus does not cause the parent container to scroll.

Did this work before? N/A 

Chrome version: 54.0.2840.98  Channel: stable
OS Version: OS X 10.12.0
Flash Version: Shockwave Flash 24.0 r0
 
Components: -UI Blink

Comment 2 by ajha@chromium.org, Dec 16 2016

Labels: Needs-Milestone

Comment 3 by tkent@chromium.org, Dec 16 2016

Components: -Blink Blink>Forms>Radio Blink>Focus
Labels: -OS-Mac -Needs-Milestone OS-All
Status: Available (was: Unconfirmed)

Comment 4 by tkent@chromium.org, Dec 16 2016

Components: -Blink>Focus
Labels: Hotlist-GoodFirstBug
scrollRectToVisible() isn't called because RadioInputType::handleKeydownEvent() calls document.setFocusedElement() with SelectionBehaviorOnFocus::None.

Comment 5 Deleted

@tkent
I have uploaded a patch for this issue. PTAL
https://codereview.chromium.org/2620843004/

Comment 7 by tkent@chromium.org, Jan 11 2017

Status: Started (was: Available)
preeti.nayak@,
- please publish the code review.
- please add a test

Comment 9 by tkent@chromium.org, Jan 17 2017

Labels: M-57
Status: Fixed (was: Started)

Comment 10 by ajha@chromium.org, Jan 19 2017

Labels: TE-Verified-M57 TE-Verified-57.0.2986.0
Verified the fix on the latest canary(57.0.2986.0) on Windows-10, Mac OS 10.12.2 and Linux Ubuntu 14.04. This is working as intended and content scrolls when navigated through radio buttons through arrow down/up key.


Sign in to add a comment