Rule
Viewport zoom lock
The viewport must let users zoom to at least 200%.
- Rule
meta-viewport- WCAG 2.2
- 1.4.4 Resize Text (opens in a new tab) (Level AA)
- Severity
- Critical
What it checks
Reads the content of the page's <meta name="viewport">. It fails when the tag sets user-scalable=no or user-scalable=0, or a maximum-scale below 2, because either one stops readers enlarging the page with the browser. A viewport tag inside an embedded frame passes, since browsers ignore it there.
When a person decides
The failure assumes the page has no control of its own that enlarges all text to 200%. If it has one, a person can record that and dismiss the finding.
Example
Fails
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>Opening hours</title>
</head>
<body><p>Open daily from nine until five.</p></body>
</html>
Passes
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Opening hours</title>
</head>
<body><p>Open daily from nine until five.</p></body>
</html>
The engine is tested against both examples.
How to fix it
Remove user-scalable=no and any maximum-scale below 2 from the viewport tag.
Check your own pages
This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.