Reflow Viewport Width Checker

Test whether your content layout works at 320 CSS px width (WCAG 1.4.10)

Ad placeholder (leaderboard)

The Reflow Viewport Width Checker renders your HTML inside a 320 CSS-pixel-wide frame and reports any element that spills past the edge. WCAG 2.1 Success Criterion 1.4.10 (Reflow) requires that content reflow into a single column at 320px without two-dimensional scrolling — the layout a 1280px desktop collapses to at 400% browser zoom. This tool simulates that condition so you can catch overflow bugs without manually zooming a real browser.

How it works

The checker writes your pasted markup into a sandboxed iframe sized to exactly 320 CSS pixels wide. Once rendered, it walks the document and measures each element:

  1. It compares scrollWidth of the document root against the 320px viewport — if the document scrolls horizontally, reflow has failed somewhere.
  2. It then inspects every element and flags any whose getBoundingClientRect().right extends past the 320px edge, or whose scrollWidth exceeds its clientWidth.
  3. Each offender is reported with its tag name, a short class hint, and its measured width so you can locate the rule causing the overflow (usually a fixed width, a min-width, a wide image, or white-space: nowrap).

Tables, pre, and code blocks are listed separately because they are the explicitly allowed exception in 1.4.10 — they may scroll horizontally when their content genuinely requires it.

Tips and notes

  • The most common real-world failures are fixed pixel widths (width: 600px), large unscaled images, and display: flex rows that never wrap. Replace fixed widths with max-width: 100% and add flex-wrap: wrap.
  • Long unbroken strings (URLs, tokens) overflow at 320px; add overflow-wrap: anywhere to the container.
  • A clean result here means no horizontal overflow, but you should still verify at 400% zoom in a real browser that nothing is clipped or overlapped, since reflow also covers hidden content.
Ad placeholder (rectangle)