Conformance
Aspect ratio meets WCAG 2.2 level AA when used as described on these pages. It only sizes a box; what you put in it decides the rest.
Keyboard
Aspect ratio is not interactive and takes no focus.
What Aspect ratio gives you
- A box that keeps its space before the content loads, so the page does not shift under people reading it.
- No role of its own: screen readers read only what is inside.
What your team does
- Give every image an
alt, oralt=""when the text next to it says the same. - Give a placeholder
role="img"and a name (“No photo yet for Ceramic cup”) only when the missing image matters; otherwise hide it. - Don’t put text in a fixed ratio; it is cut off when it wraps or when people zoom (WCAG 1.4.4, 1.4.10).
- Give a video controls and captions.
WCAG criteria
| Criterion | Level | How |
|---|---|---|
| 1.1.1 Non-text Content | A | alt on the content |
| 1.4.4 Resize Text | AA | No text inside a fixed ratio |
| 1.4.10 Reflow | AA | The width follows the container |