ARIA Widget Roles

ARIA role: scrollbar

An interactive control for moving the viewport within scrollable content. Requires aria-controls, aria-valuenow and name; implement scroll synchronization, orientation and keyboard movement. Static structure only; prefer native overflow scrollbars. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.

Formal Syntax & Structure

html syntaxhtml
role="scrollbar"

Parameters & Attributes

NameTypeDescription
roletokenExplicit role token scrollbar; use only where allowed. Omit when native semantics match.
aria-controlsID reference listRequired for this custom role unless equivalent host semantics apply. Identifies elements whose content or presence is controlled by a widget. The relationship does not implement the action. Use valid IDs and synchronize the controlled region with the control state. Values: space-separated IDs of controlled elements.
aria-valuenownumberRequired for this custom role unless equivalent host semantics apply. Reports the current numeric value of a range control or indicator. Keep it within its declared bounds and update as the value changes. Supply aria-valuetext when the numeric value alone is insufficient. Values: finite numeric current value.
aria-valueminnumberRelevant when applicable. Specifies the lower endpoint of a range widget or indicator. Coordinate it with the maximum and current value; it does not enforce input limits. Prefer native min where supported. Values: finite numeric minimum.
aria-valuemaxnumberRelevant when applicable. Specifies the upper endpoint of a range widget or indicator. Keep it greater than or equal to the minimum and keep the current value within the range. It does not constrain the value itself; prefer native max where available. Values: finite numeric maximum.
aria-orientationtokenRelevant when applicable. Describes the orientation of a widget or separator. It does not change layout or arrow-key handling. Set it to match real visual and interaction orientation, considering role-specific defaults. Values: horizontal, vertical, undefined.

Working Example

Example Snippethtml
<div role="scrollbar" aria-label="Results scroll" aria-controls="results" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" tabindex="0"></div><div id="results">Results</div>
HTML Reference