viewport-zoom
Was er macht
Dieser Skill prüft das Viewport-Meta-Tag auf Einstellungen, die das Zoomen blockieren. Er ist für Entwickler und Template-Autoren gedacht, die mobile Seiten barrierefrei halten wollen.
Wann du ihn nutzt
- ✓Wenn das Viewport-Meta-Tag einer Seite user-scalable=no enthält.
- ✓Wenn eine Seite maximum-scale auf 1 oder einen anderen niedrigen Wert setzt.
- ✓Wenn ein Template oder CSS-Framework zoomblockierende Einstellungen ergänzt hat.
Link zum Skill
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/viewport-zoom/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Auf unserer mobilen Website kann ich nicht mit zwei Fingern zoomen. Kannst du die Viewport-Einstellungen prüfen?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest das Viewport-Meta-Tag und markiert Einstellungen, die das Zoomen verhindern. Er ersetzt sie durch die Standardeinstellung für width und initial-scale.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Do not disable pinch zoom
Pinch-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.
Quick Reference
- Never use
user-scalable=nooruser-scalable=0in the viewport meta tag - Never set
maximum-scale=1(or any value below 5) in the viewport meta tag - Both prevent pinch-to-zoom, violating WCAG 2.1 SC 1.4.4 (Resize Text, Level AA)
- The correct viewport meta tag is:
<meta name='viewport' content='width=device-width, initial-scale=1'> - Note: iOS 10+ ignores
user-scalable=noin Safari, but other browsers and older iOS do not
Check
Find the <meta name='viewport'> element in the HTML <head>. Check its content attribute for: (1) user-scalable=no — disables all zoom; (2) user-scalable=0 — same effect; (3) maximum-scale=1 or maximum-scale=1.0 — limits zoom to the initial scale; (4) any maximum-scale value below 2 — 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.
Fix
Remove 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 — iOS Safari only auto-zooms on input focus when font-size is below 16px.
Explain
WCAG 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 — so the setting must be removed regardless.
Code Review
Review 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.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/viewport-zoom
Häufige Fragen
Welche Viewport-Einstellung ist richtig?
Der Skill empfiehlt width=device-width, initial-scale=1.
Ignorieren iPhones user-scalable=no?
Der Skill sagt, iOS 10 und neuer ignoriert es in Safari, andere Browser und ältere iOS-Versionen beachten es aber weiterhin.
Welche Richtlinie betrifft das Zoomen?
Der Skill nennt das WCAG-2.1-Erfolgskriterium 1.4.4 zur Größenänderung von Text.
Details
Originalbeschreibung des Autors
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.
Beliebtheit
- GitHub-Sterne
- 75k
- Platz im Ranking
- #3078
- Lizenz
- MIT
- Aktualisiert
- 31.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
frontendchecklist
75kPrüft Frontend-Code und Live-Seiten anhand von über 380 Regeln zu Barrierefreiheit, Geschwindigkeit, SEO und Sicherheit, mit einem Kommandozeilenwerkzeug.
frontend-checklist-global
75kPrüft ein Frontend-Projekt gegen alle 386 Regeln der Front-End Checklist und gibt für jedes gefundene Problem eine konkrete Lösung.
404-page
75kPrüft, ob deine Seite für fehlende Adressen hilfreiche Links anbietet und einen echten 404-Statuscode zurückgibt, damit verirrte Besucher ihren Weg finden.
about-page
75kPrüft, ob deine Website eine klare Über-uns-Seite hat, die erklärt, wer sie betreibt, um Vertrauen bei Besuchern und Suchmaschinen aufzubauen.
Ähnliche Skills
angular-developer
280kHilft deinem Agenten bei Angular-Code und gibt Tipps zur Projektstruktur. Nützlich für neue Projekte, einzelne Code-Teile sowie Performance und Barrierefreiheit.
frontend-a11y
280kHilft deinem Agenten, Weboberflächen für alle zugänglich zu machen. Sorgt dafür, dass Websites und Apps gut mit Screenreadern und Tastaturnavigation funktionieren.
frontend-patterns
280kLässt deinen Agenten moderne Muster in der Frontend-Entwicklung anwenden. Optimiert Performance, verwaltet State und folgt Best Practices für React und Next.js.