Scrollable areas must be reachable with the keyboard

Any box that scrolls on its own must work from the keyboard: either the box can receive focus, or it contains a focusable element. Otherwise keyboard users cannot scroll to the hidden part of its content.

Rule IDscrollable-region-focusable
ImpactSerious
Success criterion 2.1.1 Keyboard · A
2.1.3 Keyboard (No Exception) · AAA
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed automatically

Example

Before
<div class="terms" style="height: 12rem; overflow-y: auto;">
  <h2>Rental terms</h2>
  <p>Return the car with a full tank. Late returns are charged per hour.</p>
</div>

In Safari, Tab skips the box. A keyboard user cannot scroll down to read the rest of the terms.

After
<div class="terms" style="height: 12rem; overflow-y: auto;" tabindex="0" role="region" aria-label="Rental terms">
  <h2>Rental terms</h2>
  <p>Return the car with a full tank. Late returns are charged per hour.</p>
</div>

Tab focuses the box and the arrow keys scroll it. Screen readers announce “Rental terms, region”.

Why it matters

The keyboard scrolls whatever has focus. Arrow keys, Page Down and the space bar move the page, or the scrollable box that currently holds focus. If a box can never receive focus, keyboard users can see its first lines but cannot reach the rest.

This affects people who cannot use a mouse or trackpad: people with motor disabilities, switch users, and people who use voice control to send key presses. Long terms and conditions, code samples, wide price tables, chat transcripts and product descriptions in fixed-height boxes are typical victims.

Recent versions of Chrome and Firefox make some scrollable boxes focusable automatically, but Safari does not, and older browsers do not either. Fixing the markup works everywhere and meets WCAG 2.1.1 Keyboard at Level A.

How to fix it

Make the box focusable and name it. Add tabindex="0" so it joins the Tab order, a role, and a label so screen readers announce something meaningful when it receives focus:

<div class="terms" tabindex="0" role="region" aria-label="Rental terms">
  ...
</div>

Give it a visible focus style too, so sighted keyboard users see where they are:

<style>
  .terms:focus-visible { outline: 3px solid #1a5fb4; }
</style>

The box already contains links or fields, spread through its content: focusing each one scrolls it into view, so the box may not need focus itself. Check that text after the last focusable element can still be reached.

Avoid the inner scroller. Often the simplest fix is to let the content grow and the page scroll:

<div class="terms">...</div>

Wide data tables: wrap the table in a focusable, named region rather than making the whole page scroll sideways.

Checklist

  1. Give scrollable boxes tabindex="0".
  2. Add role="region" and a short aria-label.
  3. Show a visible focus style on the box.
  4. Let content grow instead of scrolling where possible.

How the check works

The check finds elements, other than select and textarea, that can scroll and have content beyond their visible edge. It passes when the element itself is focusable or contains a focusable element, and fails otherwise. Combobox pop-ups are skipped. A single focusable element near the top may not let users reach the end of a long box, so test scrolling with the keyboard by hand.

Resources

Updated October 27, 2026