Barrierepruefung.de Web Accessibility Checker

WCAG 1.4.12 Text Spacing: explained simply

When users raise line height, paragraph spacing, letter spacing and word spacing to the values the standard names, no content or functionality may be lost. A site does not have to use those values itself. It only must not clip or overlap text that suddenly needs more room.

Last reviewed: Sources

What does the criterion require?

Some readers need more room between lines, words and letters, among them people with low vision and many people with dyslexia. They apply that spacing themselves, with a user style sheet, a browser extension or a bookmarklet. This criterion asks the site to cope with it. When a user sets all four of the following and changes no other style, nothing may be lost:

  • line height of at least 1.5 times the font size
  • spacing after paragraphs of at least 2 times the font size
  • letter spacing of at least 0.12 times the font size
  • word spacing of at least 0.16 times the font size

The site is not required to use these values, nor to offer a setting for them. They are the test, not a design rule.

The criterion covers content in markup languages that support these properties, which on the web means HTML and CSS. Images of text and captions burned into a video are not expected to adapt. For languages and scripts that do not use one of the properties, such as Japanese without paragraph spacing, only the remaining ones apply.

A close relative is Reflow: both expect the layout to grow when text needs more space.

Common failures

According to the W3C, the failure usually comes from text sitting in a box of fixed size that does not expand. Among the ways this happens, it lists (F104):

  • overflow: hidden on the enclosing element. Text is cut off as soon as it needs more room.
  • Absolutely positioned content. Placed to fit the original text, not the same text once the spacing grows.
  • Borders that are too tight. A border that is not large enough for the text with the new spacing.

One of the technique's examples shows the case without clipping: a box of fixed height that the text spills out of, running over the paragraph below.

The W3C's Understanding document adds two more:

  • Truncation with an ellipsis. Text that ends in "…" once the spacing grows is acceptable only if the full text remains available, for instance on focus or on a linked page.
  • Spacing that cannot be overridden. Content that actively stops users' own settings from taking effect fails the criterion.

Checked automatically and checked by you

What the automated check detects

Coverage: complete

The automated check covers this criterion completely on the pages it checks.

Rules

What you check yourself

The checklist has no question of its own for it.

Classification

Level
AA
Introduced in
WCAG 2.1
W3C explanation
Understanding 1.4.12