ARIA scrollbar Role
The scrollbar role marks a custom scroll bar that controls the scroll position of a content area. Native scroll bars already work and don't need it.
Description
The scrollbar role identifies a graphical object that controls the scrolling of content within a viewing area. Its current position is given by aria-valuenow, which is required, along with aria-controls pointing to the content being scrolled. The default range is 0 to 100 and the default orientation is vertical.
Custom scroll bars are rarely needed. Browsers already provide accessible scroll bars for any element with overflow: auto or overflow: scroll, and you can style them with CSS. A custom one must be focusable and support the arrow keys and Page Up/Page Down, and the content it controls should also be scrollable by other means.
Properties
- Category
- Widget
- HTML equivalent
- None
- Accessible name from
- author
- Required parent role
- None
- Required child roles
- None
ARIA Attributes
- Required
aria-controls,aria-valuenow- Supported
aria-orientation,aria-valuemax,aria-valuemin,aria-valuetext- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="scrollbar">
Example
Browser Support
The following information will show you the current browser support for the scrollbar ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





