Lab 7

Zoom to 400 Percent

400% zoom and reflow test (WCAG 1.4.10)

A layout you have to make reflow. The frame below is 320 pixels wide, which is what a 1280 pixel window becomes at 400 percent zoom.

Before you start

Browser zoom is the assistive technology that needs no download. A lot of people with low vision read everything at 200, 300, or 400 percent, and at 400 percent a normal desktop window is as wide as a small phone. If the page cannot reflow into that width, reading a paragraph means scrolling sideways for every line.

The sample page in the frame has five of the most common mistakes: a fixed-width column, a two-column grid with fixed tracks, a text box with a fixed height, an image with a fixed width, and a sticky header that eats the screen. Each fix is one checkbox. The checks under the frame measure what actually happened.

A wide page layout beside the same layout squeezed into a phone-width column, where one block overflows and a horizontal scrollbar appears; a magnifying glass shows the content four times larger.

The lab

Scroll inside the frame to see the damage. Apply fixes until every check passes, then try the wider frames to confirm nothing broke the other way.

What you just learned

  • max-width, not width. A column that is at most 600 pixels wide shrinks when it must. A column that is exactly 600 pixels wide never does.
  • min-height, not height, on anything that holds text. Text gets longer when it gets narrower. A fixed height clips it.
  • Grids that collapse on their own. repeat(auto-fit, minmax(14rem, 1fr)) becomes one column when there is no room for two. No breakpoint required.
  • Images get max-width: 100% and height: auto. Always. It costs nothing on wide screens.
  • Sticky things need a size limit. A 60 pixel header is fine at 100 percent. At 400 percent it is a quarter of the screen that never leaves. Unstick it below a width, or cap its height.

The field note 400 percent zoom is a layout test, not an edge case has the thirty-second test for your own pages. Corpus page 12-document plants the one line that disables zoom altogether.

Embed this lab

Host the Zoom lab on your own page with one element and one script. It runs entirely in the visitor's browser, sends nothing back, and adds a small credit link.

<div data-a11y-world-lab="zoom"></div>
<script src="https://a11y.world/embed.js" async></script>
  • 400 percent zoom is a layout test, not an edge case

    Zoom a desktop page to 400 percent and you get a 320 pixel wide viewport. If the page cannot reflow into that, it has failed for everyone who needs large text.

  • Tab order is a promise the DOM makes

    The Tab key follows the HTML, not the layout. CSS cannot change that order, a positive tabindex hijacks it, and aria-hidden does not remove a stop. One real walk found 162 stops where a list of the markup said 64. Here is why, and how to check.

  • The sticky header that eats your focus

    Shift+Tab back up a form and the field you land on slides under the sticky header. The browser scrolled just far enough, and just far enough is behind the bar. WCAG 2.2 calls it focus not obscured. One CSS property fixes it.

  • Twenty-four pixels is a smaller promise than it sounds

    WCAG 2.2 asks for pointer targets of 24 by 24 CSS pixels. The spacing exception means a row of 18 px icons can pass and a row of 24 px icons can be hard to hit. Here is the rule, the circle, and the five exceptions, drawn.

  • When the toolbar will not fit

    Five icons, a narrow bar, and a 24 px rule that cannot be met as laid out. Adding height does not fix it. Wrapping does. An equal split of the width can leave every icon one pixel short. Here is the order to try fixes in, and when to stop.

  • Reading order is not visual order

    CSS can put anything anywhere. Screen readers and the Tab key follow the DOM, not the layout. When the two disagree, the page tells two different stories.

Fixed a real layout this way?

Send the before and after. Good ones become gallery entries.

Submit to the gallery