Recipe: 400% Zoom Testing
Verify your UI holds up under extreme browser zoom. WCAG 1.4.4 requires content remains readable and functional at 200%, but testing at 400% reveals layout brittleness early.
Quick Setup
- Open Chrome DevTools → Settings → Devices.
- Add a custom device with viewport 320×256.
- Set device pixel ratio to 1.0.
- In the Rendering tab, set “Force page zoom” to 400%.
- Reload the page and navigate every critical flow.
What to Check
- No horizontal scrollbar on any viewport.
- Text never overlaps or gets clipped.
- Buttons and links remain tappable (min 44×44 CSS px).
- Modals and dropdowns stay within the viewport.
- Focus ring is fully visible on every interactive element.
Tailwind Guardrails
These patterns prevent zoom breakage before it happens:
- Use
remunits for all spacing and typography. - Avoid fixed widths; prefer
max-w-*andw-full. - Set
min-h-screenon the root container. - Never hardcode
pxvalues in arbitrary components.