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:
- It compares
scrollWidthof the document root against the 320px viewport — if the document scrolls horizontally, reflow has failed somewhere. - It then inspects every element and flags any whose
getBoundingClientRect().rightextends past the 320px edge, or whosescrollWidthexceeds itsclientWidth. - 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, amin-width, a wide image, orwhite-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, anddisplay: flexrows that never wrap. Replace fixed widths withmax-width: 100%and addflex-wrap: wrap. - Long unbroken strings (URLs, tokens) overflow at 320px; add
overflow-wrap: anywhereto 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.