1.4.12 Text Spacing
Level AA · added in WCAG 2.1
When a user increases text spacing, no content or function may be lost. The test values are line height 1.5 times the font size, paragraph spacing 2 times, letter spacing 0.12 times and word spacing 0.16 times.
Who it helps
People with dyslexia and low vision often read faster with wider spacing, which they apply with a browser extension or user stylesheet. If your layout clips or overlaps the text, they lose content.
How to meet it
- Let containers grow with their text: use min-height or padding instead of a fixed height on cards, buttons and banners.
- Avoid overflow: hidden on boxes that hold text, unless the hidden text can still be reached.
- Do not set line-height, letter-spacing or word-spacing with !important in style attributes, since user styles cannot override them.
- Test with a text spacing bookmarklet or stylesheet that applies all four values at once, then check every component.
- You do not have to use these spacing values by default; you only need the page to keep working when users apply them.
- If a language or script does not use one of these properties in written text, you only need to support the properties it does use.
Examples
<p style="line-height: 1.1 !important; letter-spacing: 0 !important;">
Free returns within 30 days.
</p>.card {
height: 120px;
overflow: hidden;
}<p class="promo">Free returns within 30 days.</p>
<style>
.promo { line-height: 1.4; }
</style>.card {
min-height: 120px;
padding: 1rem;
}Can a scanner detect this?
Partly
axe-core flags inline style attributes that use !important to lock line-height, letter-spacing or word-spacing below the test values. It cannot tell whether text is clipped or overlaps once spacing changes. Apply the four spacing values and look at the page yourself.
axe-core rules that test it
avoid-inline-spacing
Common mistakes
- Giving buttons, tabs or badges a fixed height, so the label spills out or is cut off.
- Using overflow: hidden or text-overflow: ellipsis on headings that then lose words.
- Positioning text absolutely over an image so it overlaps other text when lines get taller.
- Testing only one spacing value at a time instead of all four together.
Related criteria
Check your own page
See which automated WCAG checks your page fails, with the failing elements and how to fix them.
Reviewed November 2, 2026