What AuditX checks
The scan opens the page in a desktop browser (1440 by 900 pixels), runs its other measurements, and last of all narrows the window to 320 by 800 pixels. It measures how much wider the page is than the window (the document scroll width minus the window width). When the html or body element hides or clips sideways overflow (overflow-x hidden or clip), the page cannot scroll sideways at all, so the overflow counts as 0 and the page passes, even if something is cut off at the right edge. When there is any overflow it waits 700 milliseconds and measures again, because some layouts only resize after a short delay. The page passes when the overflow is 2 pixels or less. When the overflow is more than 2 pixels, the scan reloads the page at 320 pixels and measures once more. If the page then fits, the result is a fail with a message saying the page sets its widths once when it loads, so a visitor who zooms a desktop browser to 400 percent still has to scroll sideways. If it still overflows, the result is a fail with the number of pixels it is too wide. In both fail messages the scan names up to three elements whose right edge passes the screen, with how far, leaving out fixed elements and anything inside a box that clips or scrolls on its own, since those cannot widen the page. When the overflow is 16 pixels or less, the message says the effect is small, but the result is still a fail. There is no warn. If the page could not be measured at 320 pixels, the result is an info note marked as not measured, which does not lower the score. The scan does not exempt tables, maps, code blocks or images that need two-way scrolling, so a page with a wide table fails here, and it does not check anything below or above the overflow number, such as text size.
Why it matters
W3C WCAG 2.2 success criterion 1.4.10 (Reflow) says content should be usable at a width of 320 CSS pixels without scrolling in two directions. That width is what a 1280 pixel wide window gives at 400 percent zoom.
The W3C explains that people with low vision may need to zoom in to read, and that zoomed content which needs sideways scrolling is hard to read. MDN describes a flexible, responsive layout built with media queries as the way to avoid this.
How to fix it
- Find the element that is too wide. In the browser developer tools, set the window to 320 pixels and look for the widest box.
- Replace fixed pixel widths on containers with percentages, max-width: 100% or flexible units, and let columns stack into one column on narrow screens with a media query. A small overflow of a few pixels often comes from a negative side margin or a row of icons that does not wrap, so start with the elements the result names.
- Give images and videos max-width: 100% and height: auto. Wrap wide tables in a box with overflow-x: auto so only the table scrolls.
- Test by zooming a desktop browser to 400 percent, not only by opening the page on a phone.
img, video { max-width: 100%; height: auto; }
.table-wrap { overflow-x: auto; }
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my site