It appears as though certain browsers allow a scrollable div element to receive focus - and then that element has focus the user can use the arrow keys and page up/down. I'm interested in learning everything I can about this functionality, because my company is trying to become fully 508 compliant.
My question is, what browsers support the focus event on a scrollable element?
I am trying to make a custom scroll bar component to make a more stylish scroll container to satisfy the UX (user experience) guys to make their layout pretty (yes I am aware this is likely not a good idea) I am going to make the component to satisfy their requirement.
Any other information/tips you can give here on how to make my custom scrollable div element be fully 508 compliant would be great.
Right now I'm considering the following:
- Focusing on the scrollable element allows arrow key up/down and page/up down... Which browsers? Is this all browsers?
- Middle mouse button should work (brings up a fast scroll with mouse movements)
- Mouse wheel should work
- If focused on something inside the scrollable element that doesn't normally use the arrow keys (such as input or textarea) then the arrow keys/page up/down will scroll the div
Is there any other way to move the scroll I am forgetting?