1.4.12 Text Spacing
Level AA Since WCAG 2.1 How it is checked: Robot
In plain language
When users increase line height to 1.5 times the font size, paragraph spacing to 2 times, letter spacing to 0.12 times and word spacing to 0.16 times, content must not be cut off or overlap.
Who is affected
- People with low vision
- People with cognitive disabilities
Examples
Fails
A button with a fixed height: when line spacing increases, the text spills out and gets hidden.
Passes
Boxes and buttons expand to fit the text.
How to fix
- Avoid fixed heights and overflow: hidden on containers that hold text.
- Use padding and min-height instead of height.
How to test it yourself
- Use a "text spacing bookmarklet", or view the "text spacing" screenshot in the WCAG.win report.
What WCAG.win checks
WCAG.win checks part of this criterion automatically. The rest still needs a person.
- Automated checker – rule
avoid-inline-spacing: Inline text spacing must be adjustable with custom stylesheets - Robot: Applies the WCAG text-spacing values (line, paragraph, letter and word spacing) and looks for clipped text.
W3C documentation: Understanding Success Criterion 1.4.12: Text Spacing