{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-viewport-zoom-7df5e95d126b","title":"Do Not Disable Pinch Zoom","summary":"Ensure mobile accessibility by allowing pinch-to-zoom functionality in HTML viewport meta tags. The correct viewport meta tag is: `<meta name='viewport' content='width=device-width, initial-scale=1'>`.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-viewport-zoom-7df5e95d126b","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-viewport-zoom-7df5e95d126b","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-viewport-zoom-7df5e95d126b.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-viewport-zoom-7df5e95d126b\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before applying changes, validate that the current viewport meta tag is not being overridden by CSS or JavaScript. If `maximum-scale` is set for a specific reason (e.g., to prevent unintended zoom on input focus on iOS), adjust form input `font-size` to `1rem` (16px) instead.","instructions":"---\nname: viewport-zoom\ndescription: \"Use when applies to any `<meta name='viewport'>` element in HTML documents. Check the `content` attribute for `user-scalable=no`, `user-scalable=0`, `maximum-scale=1`, or `maximum-scale` values less than 2. This is a common mistake in mobile-first templates and CSS frameworks.\"\nmetadata:\n  category: accessibility\n  priority: high\n  difficulty: beginner\n  estimatedTime: \"5\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/viewport-zoom\n---\n\n# Do not disable pinch zoom\n\nPinch-to-zoom is an essential accessibility feature for low-vision users who cannot read text at the page's default size. When zoom is disabled, these users cannot enlarge text or images, making the page completely inaccessible without external magnification software. Low-vision users who rely on browser zoom are entirely blocked. Additionally, all users benefit from being able to zoom in on small text, fine-print, or complex images. Disabling zoom is one of the most harmful and easily preventable accessibility failures.\n\n## Quick Reference\n\n- Never use `user-scalable=no` or `user-scalable=0` in the viewport meta tag\n- Never set `maximum-scale=1` (or any value below 5) in the viewport meta tag\n- Both prevent pinch-to-zoom, violating WCAG 2.1 SC 1.4.4 (Resize Text, Level AA)\n- The correct viewport meta tag is: `<meta name='viewport' content='width=device-width, initial-scale=1'>`\n- Note: iOS 10+ ignores `user-scalable=no` in Safari, but other browsers and older iOS do not\n\n## Check\n\nFind the `<meta name='viewport'>` element in the HTML `<head>`. Check its `content` attribute for: (1) `user-scalable=no` \u2014 disables all zoom; (2) `user-scalable=0` \u2014 same effect; (3) `maximum-scale=1` or `maximum-scale=1.0` \u2014 limits zoom to the initial scale; (4) any `maximum-scale` value below 2 \u2014 significantly limits zoom range. Flag any of these. Also check CSS for `touch-action: none` or `user-zoom: fixed` (CSS Device Adaptation, rarely used) that may limit zoom.\n\n## Fix\n\nRemove `user-scalable=no` and `maximum-scale=1` from the viewport meta tag. The correct viewport meta tag for a responsive site is: `<meta name='viewport' content='width=device-width, initial-scale=1'>`. If `maximum-scale` was set for a specific reason (e.g., to prevent unintended zoom on input focus on iOS), the correct fix is to set form input `font-size: 1rem` (16px) instead \u2014 iOS Safari only auto-zooms on input focus when font-size is below 16px.\n\n## Explain\n\nWCAG 2.1 SC 1.4.4 (Resize Text, Level AA) requires that text can be resized up to 200% without loss of content or functionality, except for captions and images of text. On mobile devices, pinch-to-zoom and the browser's built-in text size settings are the primary mechanisms for resizing text. Setting `user-scalable=no` or `maximum-scale=1` in the viewport meta tag disables pinch-to-zoom entirely (or limits it to 1x), preventing low-vision users from enlarging content. This is a direct violation of SC 1.4.4. While iOS 10+ Safari ignores these settings, Android browsers, Chrome for iOS, and older iOS versions do not \u2014 so the setting must be removed regardless.\n\n## Code Review\n\nReview stylesheets, component styles, and responsive states related to Do not disable pinch zoom. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/viewport-zoom\n","use_cases":["Fix accessibility issues caused by `user-scalable=no` or `maximum-scale=1` in viewport meta tags.","Ensure compliance with WCAG 2.1 SC 1.4.4 (Resize Text, Level AA) for mobile accessibility.","Prevent loss of content or functionality when users resize text on mobile devices."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/viewport-zoom\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T06:10:14.000000Z","updated_at":"2026-11-24T07:12:47.000000Z","seo_title":"Fix Pinch Zoom Disabled in Mobile Accessibility","seo_description":"Ensure mobile accessibility by allowing pinch-to-zoom functionality in HTML viewport meta tags. Prevent violations of WCAG 2.1 SC 1.4.4.","seo_keywords":["mobile accessibility","pinch zoom disabled","WCAG 2.1 SC 1.4.4","viewport meta tag fix","user-scalable=no","maximum-scale=1"]}}