Zum Inhalt springen
Skillpedia
Websites & UI (Frontend)75k · #3078

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.md

Kopiere 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

Nutze diesen Skill, um mir zu helfen: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/viewport-zoom/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

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=no or user-scalable=0 in 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=no in 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.

repo: thedaviddias/Front-End-Checklist

Beliebtheit

GitHub-Sterne
75k
Platz im Ranking
#3078
Lizenz
MIT
Aktualisiert
31.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills