--- name: wcag-aa description: Engineering rules for WCAG 2.2 Level A and AA conformance across Perceivable, Operable, Understandable, and Robust, plus distilled web-team rules. Use when building or reviewing web UI for AA compliance, answering what an A or AA criterion requires, choosing an accessible component pattern, or grounding audit findings in the standard. license: MIT metadata: author: ult-accessability version: "1.0.0" --- # WCAG 2.2 Level AA Rule bullets for all Level A and AA criteria, organized by POUR. Criterion table: [WCAG.md](../../references/WCAG.md). Production code lives in the linked patterns — this skill states rules, it does not duplicate code. Contrast ratios are measured with [contrast-color](../contrast-color/SKILL.md), never eyeballed. Level A is the minimum; AA is the standard legal and procurement target in most jurisdictions. New-in-2.2 criteria are marked **(2.2)**. `WCAG 2.2 SC 4.1.1 (Parsing, A)` was removed in 2.2 — never cite it as a failure. ## Perceivable ### Text alternatives and media - Every informative ``, ``, icon, and canvas needs a meaningful text alternative; decorative elements take `alt=""` or `aria-hidden="true"` — `WCAG 2.2 SC 1.1.1 (Non-text Content, A)`. - Complex images (charts, infographics) need a longer description via `aria-describedby` or adjacent text, not just a short alt — `WCAG 2.2 SC 1.1.1 (Non-text Content, A)`. - Icon-only buttons need an accessible name (`aria-label` or visually hidden text); the icon itself is `aria-hidden` — [visually-hidden](../../references/A11Y-PATTERNS.md#visually-hidden), `WCAG 2.2 SC 1.1.1 (Non-text Content, A)`. - Prerecorded audio-only needs a transcript; video-only needs a text or audio alternative; video with audio needs synchronized captions and audio description — `WCAG 2.2 SC 1.2.1 (Audio-only and Video-only (Prerecorded), A)`, `WCAG 2.2 SC 1.2.2 (Captions (Prerecorded), A)`, `WCAG 2.2 SC 1.2.3 (Audio Description or Media Alternative (Prerecorded), A)`. - Live synchronized media needs live captions; prerecorded video needs a descriptive audio track — `WCAG 2.2 SC 1.2.4 (Captions (Live), AA)`, `WCAG 2.2 SC 1.2.5 (Audio Description (Prerecorded), AA)`. - Caption quality bar: 99%+ accuracy, synced within 1s, speaker identification, non-speech audio in brackets (`[applause]`), max ~200 words/minute. ### Structure and adaptability - Structure conveyed visually (headings, lists, table headers, labels) must also be programmatic — use semantic elements, not styled `
`s — `WCAG 2.2 SC 1.3.1 (Info and Relationships, A)`. Disclosure widgets follow the [accordion](../../references/A11Y-PATTERNS.md#accordion) pattern. - DOM reading order must match logical/visual order — never fix out-of-order DOM with CSS `order` or absolute positioning — `WCAG 2.2 SC 1.3.2 (Meaningful Sequence, A)`. - Instructions must not rely solely on shape, color, size, location, orientation, or sound ("click the green button") — `WCAG 2.2 SC 1.3.3 (Sensory Characteristics, A)`. - Never lock orientation to portrait or landscape unless essential — `WCAG 2.2 SC 1.3.4 (Orientation, AA)`. - Personal-data fields need standard `autocomplete` tokens (`email`, `tel`, `given-name`, …) — `WCAG 2.2 SC 1.3.5 (Identify Input Purpose, AA)`, [forms-and-errors](../../references/A11Y-PATTERNS.md#forms-and-errors). ### Distinguishable - Color is never the only means of conveying information — pair it with text, icons, borders, or underlines (errors, required fields, link affordances) — `WCAG 2.2 SC 1.4.1 (Use of Color, A)`. - Audio auto-playing longer than 3s needs pause/stop or independent volume control — `WCAG 2.2 SC 1.4.2 (Audio Control, A)`. - Text contrast: 4.5:1 normal text, 3:1 large text (≥24px, or ≥18.66px bold) — `WCAG 2.2 SC 1.4.3 (Contrast (Minimum), AA)`. Measure with [contrast-color](../contrast-color/SKILL.md). - Text must resize to 200% without clipping or loss of function — relative units, no fixed heights — `WCAG 2.2 SC 1.4.4 (Resize Text, AA)`. - Use live text instead of text baked into images — `WCAG 2.2 SC 1.4.5 (Images of Text, AA)`. - No two-dimensional scrolling at 320px width (400% zoom at 1280px) — responsive layouts, single column — `WCAG 2.2 SC 1.4.10 (Reflow, AA)`. - UI boundaries, icons, and focus indicators need 3:1 against adjacent colors — `WCAG 2.2 SC 1.4.11 (Non-text Contrast, AA)`, [focus-rings](../../references/A11Y-PATTERNS.md#focus-rings). - No clipping with line-height 1.5, letter-spacing 0.12em, word-spacing 0.16em, paragraph-spacing 2em — `WCAG 2.2 SC 1.4.12 (Text Spacing, AA)`. - Hover/focus-revealed content must be dismissible (Esc), hoverable, and persistent — [content-on-hover](../../references/A11Y-PATTERNS.md#content-on-hover), `WCAG 2.2 SC 1.4.13 (Content on Hover or Focus, AA)`. ## Operable ### Keyboard - All functionality operable by keyboard alone — prefer native `