Favorites

ARIA scrollbar Role

scrollbar
ARIA Widget RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

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.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

Syntax

<element role="scrollbar">

Example

<div id="txt" style="height:60px;overflow:hidden;border:1px solid #ccc;width:200px">
<p>Line 1</p><p>Line 2</p><p>Line 3</p><p>Line 4</p>
</div>
<div role="scrollbar" aria-controls="txt" aria-orientation="vertical" aria-valuenow="0"
aria-valuemin="0" aria-valuemax="100" tabindex="0" aria-label="Scroll text"
style="width:12px;height:60px;background:#ddd"></div>

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.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee