Rule

Text spacing overrides

Text must survive user spacing overrides without being cut off.

Rule
text-spacing
WCAG 2.2
1.4.12 Text Spacing (opens in a new tab) (Level AA)
Severity
Serious

What it checks

Applies the spacing the criterion lists, line height 1.5, letter spacing 0.12em, word spacing 0.16em and 2em after paragraphs, for a moment during the audit, then removes it. Only containers that hide their overflow and hold text are measured. A container that did not overflow before the spacing was applied and overflows with it is flagged. Text that was already cut off by design, such as an ellipsis, is left as it was written.

When a person decides

This rule never fails. An overflowing box shows the text no longer fits, but the extra room can be empty space after the last letter rather than lost words. A person applies the same spacing and checks whether any text is hidden.

Example

Sent to review

<p style="width: 16em; height: 2.6em; line-height: 1.25; overflow: hidden">Free returns within thirty days on all full price items.</p>

Passes

<p style="width: 16em; min-height: 2.6em; line-height: 1.25">Free returns within thirty days on all full price items.</p>

The engine is tested against both examples.

How to fix it

Let text containers grow with their text: use min-height in place of height, and avoid overflow: hidden on boxes of text.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.