Skip to content
1.4.12 · Level AA · WCAG 2.1 · Perceivable → Distinguishable

Text Spacing

When a user overrides line height to 1.5, paragraph spacing to 2× the font size, letter spacing to 0.12em and word spacing to 0.16em, nothing is cut off and nothing overlaps.

Why it matters

People with dyslexia and some low-vision users apply exactly these overrides with a browser extension or a user stylesheet. A card with a fixed height, or text locked with !important, clips the words they were trying to make readable.

Automatically detected

axe-core flags inline styles that set spacing with !important, which blocks the user's override. Whether a layout actually clips or overlaps once spacing increases needs the page rendered with the overrides applied.

Related axe-core rules: avoid-inline-spacing

Fails

<p style="line-height: 1.1 !important; letter-spacing: 0 !important;">Order summary</p>
<div class="card" style="height: 120px; overflow: hidden;">…</div>

The !important spacing cannot be overridden by the reader, and the fixed-height card hides anything that grows past 120px.

Passes

<p class="summary">Order summary</p>
<div class="card" style="min-height: 120px;">…</div>

Spacing comes from a stylesheet the user can override, and the card uses a minimum height so it grows with its contents.

Openwell finds violations like this one across your whole site, clusters them by the component that caused them, and generates a fix that's re-validated before you see it.

Scan your site free
WCAG 1.4.12 Text Spacing — what it requires and how to fix it — Openwell