Rules · avoid-inline-spacing
Failure reference
Text spacing locked with important inline styles.
Readers with dyslexia often widen letter, word and line spacing with their own style sheet. An inline !important wins that fight, and the text stays cramped.
What fails — and who it fails
The failure, in plain language.
Elements whose style attribute sets line-height, letter-spacing or word-spacing with !important, usually from page builders and email-style templates. The user's spacing override cannot apply.
Detection — what the machine can and cannot judge
How the scanner finds it.
- Inline style attributes are checked for line-height, letter-spacing and word-spacing marked !important.
- Each element is flagged with its selector and the declaration that blocks the override.
- What automation cannot judge: whether content is clipped or overlaps once wider spacing is applied. That needs the spacing applied and the page looked at, which is the guided audit's job.
The legal reading — factual, not fearful
Where this sits in enforcement.
1.4.12 is Level AA, added in WCAG 2.1 and carried into EN 301 549. It rarely leads a complaint, but it is a clean, provable entry in an annex and clears with a template edit.
The fix — by pattern
The pattern that clears it.
- <p style="line-height: 1.1 !important">
+ <p class="body"> /* .body { line-height: 1.5; } */Fix the template, not the page — one change typically clears every instance at once. The triage engine groups findings by template pattern for exactly that reason.
Verification — resolution is evidence, not a checkbox
Fixed means a scan said so.
On monitored domains, mark the finding fixed and the next scan verifies it: zero remaining instances converts the finding to Resolved, and both the claim and the confirmation land in the append-only ledger. Criteria that need human judgement close through sign-off in the coverage matrix — covered by the right method, never by assumption.
Related failures:
See where your templates stand.
A complimentary assessment renders up to 25 public pages in an EU-hosted browser and shows every instance of this failure — grouped, ranked, and honest about what still needs a human.