Text Spacing
A reader must be able to increase line height to 1.5×, paragraph spacing to 2×, letter spacing to 0.12em, and word spacing to 0.16em without losing content. People with dyslexia and low vision use exactly these overrides.
- Principle
- Perceivable
- Guideline
- 1.4
- Level
- AA
- In WCAG since
- 2.1
- Number
- 1.4.12
Broken, then fixed
The same interface twice: first with the mistake, then with the smallest change that fixes it.
Loosened spacing pushes text out of a rigid container.
The container was sized to fit the text exactly as designed. Apply a reader stylesheet and the last line is clipped.
The container is sized by its contents.
No fixed height, no clipping, and nothing positioned absolutely on the assumption that a line is exactly one line tall. This is 1.4.4’s discipline applied to spacing rather than size.
How to test
Check your own interface against 1.4.12, one step at a time.
- Get a free way to override text spacing, such as a text spacing bookmarklet or a user style in the Stylus extension, set to line height 1.5 times the font size, paragraph spacing 2 times, letter spacing 0.12 times and word spacing 0.16 times.
- Apply the spacing to the page and read it through. Check no text is cut off, hidden by other content or overlapping it.
- Look closely at boxes with a fixed size: buttons, tabs, cards, badges, navigation bars and form fields. These are where text usually spills out or gets clipped.
- Open the menus, tooltips and dialogs with the spacing applied, and check their text too.
- Check each control still works and its label can still be read in full.
Common questions
Does my site have to use the 1.4.12 spacing values?
No. 1.4.12 asks that nothing breaks when a person applies them. Your own design can use any spacing.
Does 1.4.12 apply to captions burned into a video?
No. Text drawn into an image or a video frame cannot take new spacing. Captions sent as a separate text track can, so they are a different case.
Does 1.4.12 apply to a script that does not use one of these properties?
No, not for that property. A page in Japanese, which does not put spaces between words, is tested without word spacing.
Try it yourself
A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.
Try it: loosen the spacing
How to use this lab
- Goal. Space out the notice card’s text the way some readers do, and keep all of it readable.
- The controls. The tick boxes under “Text spacing overrides” turn on Line height 1.5, Paragraph spacing 2, Letter spacing 0.12 and Word spacing 0.16, each a multiple of the font size; Apply all four turns on every one. The choices under “Boxes” make the card’s boxes Fixed height or Flexible. The readouts count the overrides that are on and say whether all the text fits.
- Try this. The lab starts with no overrides and Fixed height, and passes. Press Apply all four, or tick any one override, and watch the text get cut off. Then choose Flexible under “Boxes”.
- What it means. If the boxes grow so all the text still shows with the spacing on, 1.4.12 passes. If any override pushes text out of a fixed-height box, 1.4.12 fails: people with dyslexia or low vision who space text out to read it lose words. The verdict line under the lab says which.
- 0 of 4overrides on
- All the text fitsEvery box shows all of its text
1.4.12 passes
Also in guideline 1.4
Criteria in the same guideline often fail together.
- 1.4.1, PerceivableLevel A
Use of Color
Fails when: Hue is the only signal.
- 1.4.2, PerceivableLevel A
Audio Control
Fails when: Autoplaying audio with no control on the page.
- 1.4.3, PerceivableLevel AA
Contrast (Minimum)
Fails when: Hierarchy built by fading text out.
- 1.4.4, PerceivableLevel AA
Resize Text
Fails when: A fixed-height box clips its own text when enlarged.
- 1.4.5, PerceivableLevel AA
Images of Text
Fails when: A headline exported as an image.
- 1.4.10, PerceivableLevel AA
Reflow
Fails when: Fixed-width columns make the page scroll sideways as well as down at 320px wide.