How to fix "Zooming and scaling must not be disabled"
Many people with low vision pinch to zoom on every page they read. A viewport tag that blocks zooming takes that away. It fails WCAG 1.4.4, and it is one of the few failures that makes an entire site harder to use with a single line.
The failing line
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
The fix
<meta name="viewport" content="width=device-width, initial-scale=1">
Remove user-scalable=no (or user-scalable=0) and any maximum-scale below 2.
Why it was there, and the better answer
- To stop iOS zooming in when a form field is focused. iOS does that when the field's text is smaller than 16px. Set
font-size: 16pxor larger on inputs instead. - To keep a carousel or map from zooming by accident. Use
touch-actionin CSS on that component only, for exampletouch-action: pan-y. - To make a web page feel like an app. That preference does not outweigh a visitor being able to read the text.
Check your own site
Our free scanner loads your pages in a real browser and lists every failure like this one that automated testing can detect. Scan a site.