Re: [csswg-drafts] [css-overflow] Should a visibility:hidden overflow:scroll be scrollable? (#4113)

> can you elaborate on what you mean here? 

I mean, if mouse-wheel users can scroll it, then keyboard users should be able to scroll it. Which means there must be a keyboard-only way to get focus on the scroll container or its contents.  (Now, some browsers aren't very good about making scrollable containers focusable by default even if they _are_ visible, but the standard solution is to give the container `tabindex="0"`. In this case, you'd need to make the visible child focusable, but at the same time something non-interactive that will bubble keyboard events up to the container.)

Of course, even that wouldn't guarantee accessibility for all users: some users still rely on grabbing the visible scoller in order to scroll.  (I do this all the time myself for small widgets on screen where I can't easily get keyboard focus to the correct place, since touch gesture scrolling on my trackpad is very unreliable.)  To make scrolling work for this situation, the scrollbar itself would need to be rendered separate from the rest of the box.

In sum: If the hidden scroll container is "scrollable" it needs to be scrollable with every input method that normally works for visible scroll containers.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4113#issuecomment-511170529 using your GitHub account

Received on Sunday, 14 July 2019 03:41:53 UTC