Skip to content
Astera Technology

Keep a wide table in its own scroll region

Preserve a 600px data table while the surrounding document fits a phone-width frame.

Scroll the table locally to reach the last column.

Download complete case notes and answer keys ↓

Inspect the working example

The table has three measurement columns and an explicit 600px width. Its wrapper has local overflow-x:auto and a focusable region name. The data genuinely needs column context; it is not replaced with unrelated cards.

Inputs and native observations
CaseInput or inspectionResult and meaning
320/390px frameInspect wrapper overflowTable wider than wrapper; local horizontal scroll available
960px frameInspect the same 600px tableTable fits without local horizontal overflow
Last valueScroll to Difference800 remains reachable
Download editable CSV ↓

Follow the browser mechanism

A local scroll container contains the two-dimensional table without forcing the whole document wider. The wrapper needs a usable route to hidden columns, including focus and scrolling. This demonstrates one table task; it is not a whole-site WCAG conformance claim.

Hidden overflow cuts the route to columns

The alternative changes the wrapper to overflow-x:hidden.

Counterexample source; inspect separately
<style>body{margin:8px}</style>
<style>.wrap{overflow-x:hidden}.wrap table{width:600px;max-width:none}</style><section class="wrap"><table><tr><th>Source</th><th>Minified</th><th>Difference</th></tr><tr><td>2000</td><td>1200</td><td>800</td></tr></table></section>

The table remains wider than its narrow wrapper, but user scrolling is clipped by hidden overflow. Programmatic scroll changes are not evidence of a user route.

Try the repair

Does root scrollWidth fitting the viewport alone prove this table can be read?

Show the worked answer

No. Also reach the final column within the local region and inspect its value and headers.

  • Keep root width bounded while measuring table and wrapper widths separately.
  • Test real local scroll movement and final-column reachability.

Original example files

Related resources