Text must not be cut off when visitors increase text spacing

Text must stay fully visible when visitors increase line height, letter, word and paragraph spacing, as people with dyslexia or low vision often do to read more easily.

Readabler check

Rule IDrdb-text-spacing
ImpactSerious
Success criterion 1.4.12 Text Spacing · AA
StandardsWCAG 2.1 · WCAG 2.2 · EN 301 549
Readabler fix Needs a change in the website’s code

Example

Before
<style>
  .card-title { height: 48px; overflow: hidden; line-height: 24px; }
</style>
<h3 class="card-title">Waterproof hiking boots with ankle support</h3>

With wider spacing, the title needs three lines and the last one, "ankle support", disappears.

After
<style>
  .card-title { min-height: 48px; line-height: 1.5; }
</style>
<h3 class="card-title">Waterproof hiking boots with ankle support</h3>

The title box grows with the text, so every word stays visible at any spacing.

Why it matters

Many people with dyslexia, low vision or cognitive disabilities read better with more space between lines, letters and words. They apply it with a browser extension, a user stylesheet or a reading tool. If your layout uses fixed heights with hidden overflow, the extra spacing pushes text out of its box and it is silently cut off: a product name loses its last words, a button label becomes unreadable, a warning loses its key sentence.

WCAG 2.1 success criterion 1.4.12 requires that no content or function is lost when line height is set 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.

How to fix it

Let boxes that contain text grow with it.

Fixed heights. Use min-height instead of height, so the box can expand:

<style>
  .card-title { min-height: 3em; }
</style>

Hidden overflow. Remove overflow: hidden from text containers, or limit it to decorative layers. If you need to clip long text on purpose, provide the full text another way, for example on the product page the card links to.

Line clamping. -webkit-line-clamp hides text beyond a number of lines. Use it only for previews where the full text is one click away, and prefer em-based heights so the clamp adapts:

<style>
  .teaser { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
</style>
<a href="/articles/winter-tyres">Read the full article</a>

Buttons and tabs. Size them with padding, not fixed widths and heights, so a longer label wraps instead of being clipped.

Units. Prefer em, rem and unitless line heights over pixel values: they scale with the visitor's settings.

Test with a text spacing bookmarklet: apply the four values and look for cut-off or overlapping text.

Checklist

  1. Use min-height instead of height on text boxes.
  2. Avoid overflow: hidden on containers with text.
  3. Size buttons and tabs with padding, not fixed sizes.
  4. Test pages with increased text spacing applied.

How the check works

The check finds visible boxes with text that hide overflow (overflow: hidden or clip). It then applies the WCAG spacing values (line height 1.5, letter spacing 0.12em, word spacing 0.16em, paragraph spacing 2em) for a moment and reports boxes whose content now overflows more than before. Text that overlaps other content without being clipped is not detected: check that manually.

Resources

Updated October 27, 2026