Skip to content

Zooming needs to stay enabled

  • Rule: axe/meta-viewport
  • Checks: Zooming and scaling must not be disabled
  • WCAG: 1.4.4
  • Fix class: mechanical: A fix needs no authored text or visual decision.
  • People with low vision, who zoom, magnify or need strong contrast.

The viewport tag sets user-scalable=no or user-scalable=0

Section titled “The viewport tag sets user-scalable=no or user-scalable=0”

Remove user-scalable from the content attribute. Zooming is allowed by default.

<meta name="viewport" content="width=device-width, initial-scale=1">

The viewport tag sets maximum-scale below 2, such as maximum-scale=1

Section titled “The viewport tag sets maximum-scale below 2, such as maximum-scale=1”

Remove maximum-scale, or set it to at least 5 so people can zoom to 500%. A value from 2 up to 5 passes this rule but is reported under meta-viewport-large.

Zoom was limited to stop phones zooming into form fields on focus

Section titled “Zoom was limited to stop phones zooming into form fields on focus”

Give text fields a font-size of at least 16px, which stops iOS Safari zooming in on focus, and remove the zoom limits.

Blocking zoom another way, such as touch-action: pan-x pan-y on the page or a script that cancels gesture events

Section titled “Blocking zoom another way, such as touch-action: pan-x pan-y on the page or a script that cancels gesture events”

axe checks only the viewport tag, so the rule passes, but the page can still stop people from pinching to zoom.

axe-core’s documentation of the rule

CORA’s fix guidance adapts content from accessibility-agents, under the MIT License: see its notice.