• Success Criterion 1.4.12
  • Conformance level AA

JavaScript Truncation That Deletes Content on Text-Spacing Change

1.4.12 — Text Spacing

Scenario

Setting

A car-rental site's checkout flow

What’s wrong

JS truncation re-running and deleting content when spacing changes metrics.

Example

* { line-height: 1 !important; letter-spacing: 0 !important; }

Why it matters

People with dyslexia or low vision who apply extra text spacing to read.

How to test

Apply the text-spacing override where JS auto-truncation runs (character counters, ellipsis logic): if it deletes content when the spacing metrics change, it fails.

How to fix

With user text-spacing overrides applied (line height 1.5, paragraph 2x, letter 0.12em, word 0.16em), all content and controls must remain visible and usable. /* No !important overrides — let user style sheets adjust spacing */ !important locks out user stylesheets that increase line/letter/word spacing for readability.

Outcome

On a car-rental site's checkout flow, this barrier is gone for people with dyslexia or low vision who apply extra text spacing to read — they get the same result as anyone else here.

Who is affected

People with dyslexia or low vision who apply extra text spacing to read.

Learn more