Skip to content

The page stops people from zooming

a11y-zoom-disabledserious
On this page

Why it matters

  • People with low vision zoom a page with two fingers to read it. A viewport meta with user-scalable=no or maximum-scale=1 tells the browser not to let them.
  • WCAG 2.2 asks that text can be resized up to 200 percent without loss of content or function (success criterion 1.4.4, level AA).
  • Some browsers now ignore the setting, but others still obey it, so the page is locked for some of its visitors.

Example

Wrong
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
Right
<meta name="viewport" content="width=device-width, initial-scale=1" />

How to fix

Remove user-scalable=no and maximum-scale, or set maximum-scale to 2 or more:

html
<meta name="viewport" content="width=device-width, initial-scale=1" />
  • If the setting was there to stop a form field from zooming on focus, give the field a font size of 16 pixels instead.

How we detect

  1. We render the page and run axe-core 4.13.0's meta-viewport rule in each engine.
  2. It reports a viewport meta with user-scalable=no (or 0), or a maximum-scale below 2.
  3. It does not apply to pages without a viewport meta; viewport-missing judges those.