• Success Criterion 1.4.4
  • Conformance level AA

JavaScript Text Truncation That Deletes Content on Zoom

1.4.4 — Resize Text

Scenario

Setting

A job board's application form

What’s wrong

JS that measures text and truncates with ellipsis based on pixel budgets (content lost, no expansion).

Example

html { font-size: 14px; } /* fixed px, breaks at 200% browser zoom */

Why it matters

Low-vision people who enlarge text instead of using a screen reader.

How to test

Set zoom to 200% and check any auto-truncating text (ellipsis): if JS measures pixel width and cuts content that was previously visible, it fails.

How to fix

At 200% text size/zoom, all content and controls must remain visible, readable, and usable — nothing clipped, overlapped, or lost. html { font-size: 100%; } body { font-size: 1rem; } /* scales with zoom */ Text sized in rem/em scales when the user zooms; hard-coded pixel sizes can get clipped or overlap.

Outcome

On a job board's application form, this barrier is gone for low-vision people who enlarge text instead of using a screen reader — they reach the same outcome without extra effort.

Who is affected

Low-vision people who enlarge text instead of using a screen reader.

Learn more