Rule

Justified text

Blocks of text should not be justified to both margins (AAA)

Rule
text-justified
WCAG 2.2
1.4.8 Visual Presentation (opens in a new tab) (Level AAA)
Severity
Moderate

What it checks

Looks at blocks of text, such as paragraphs, list items, table cells and quotations, whose computed text-align is justify. Only a block that carries at least 120 characters of running text of its own is considered, so a justified wrapper is reported once, at the paragraph that holds the words, and not at every ancestor.

When a person decides

This rule never fails. Justified text leaves uneven gaps between words that can form channels of white down the page, which some readers find hard to read across. The criterion allows it where a mechanism lets the reader turn it off, and that mechanism may be in the page or the browser, so a person checks whether one exists.

Example

Sent to review

<p style="text-align: justify; max-width: 32em">Our library opens at nine every morning and closes at six, except on public holidays, when the building stays shut and the online catalogue remains open for renewals.</p>

Passes

<p style="text-align: start; max-width: 32em">Our library opens at nine every morning and closes at six, except on public holidays, when the building stays shut and the online catalogue remains open for renewals.</p>

The engine is tested against both examples.

How to fix it

Align running text to the start edge with text-align: start, or offer a control that turns justification off.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.