- Level
- AA
- Since
- WCAG 2.1
- Entries
- 30 / 193
1.4.12 Text Spacing
When a reader increases the spacing between lines, paragraphs, letters and words, no text may be cut off or overlap.
/ What it requires
Some readers, among them many people with dyslexia or low vision, read far more easily with extra room between lines, words and letters, and they set that room themselves with a browser extension, a bookmarklet or their own stylesheet. The page does not have to look like that by default. It has to keep working when they do it: no clipped sentences, no text running over the next block, no button whose label has vanished.
The criterion names four values and requires that setting all of them, and nothing else, causes no loss of content or functionality: line height at least 1.5 times the font size, spacing after paragraphs at least 2 times, letter spacing at least 0.12 times and word spacing at least 0.16 times the font size. It covers content written in markup that supports these properties, so images of text are outside it, and a script that does not use one of the properties is tested without it.
/ How pages fail it
- A container has a fixed height and overflow: hidden, so the extra line height pushes the last lines out of sight.
- Buttons, tabs or navigation items have a fixed height or width and white-space: nowrap, and wider letter spacing cuts their labels off.
- Text overflows a box with a fixed height and runs over the content below it.
- Headlines or card texts are truncated with text-overflow: ellipsis or a line clamp, and the spacing hides words that were visible before.
- Text is absolutely positioned over a background shape that does not grow with it.
/ How to check it yourself
- Apply the four values with a text spacing bookmarklet or browser extension, or paste a rule into the developer tools: line-height: 1.5, letter-spacing: 0.12em, word-spacing: 0.16em on all elements and margin-bottom: 2em on paragraphs, each marked important.
- Go through the page and compare it with the original: look for cut-off lines, overlapping text, labels that no longer fit their buttons and content that has disappeared.
- Pay attention to components with tight boxes: navigation, tabs, buttons, cards, badges, form labels, table cells and banners.
- Repeat the check in a narrow window, because boxes that have room to spare on a desktop often have none on a phone.
/ How to fix it
- Replace height with min-height on every element that contains text, and size buttons with padding instead of a fixed height.
- Remove white-space: nowrap where the text can wrap, and let flex and grid items grow with their content.
- Do not use overflow: hidden to tidy up text boxes. Where truncation is intended, give the reader a way to reach the full text.
- Set sizes that depend on text in em or rem, so that boxes scale with the font.
- Keep text in the normal flow, not absolutely positioned inside a box of fixed size.
/ What our scanner checks
The rendered pass notes which of up to 400 visible text elements are already clipped, then injects a stylesheet with line height 1.5, letter spacing 0.12em, word spacing 0.16em and a 2em bottom margin on paragraphs, list items and headings. It measures again, removes the stylesheet and reports only the boxes that became clipped. Text that overflows visibly and overlaps its neighbours is not detected.
/ Who fails it, in our own measurements
| Body | Sector | Instances | Score |
|---|---|---|---|
| Państwowa Inspekcja Pracy | government · PL | 29 | 10 |
| Gdańsk | city · PL | 24 | 2 |
| Politechnika Śląska | education · PL | 22 | 2 |
| Poznań | city · PL | 17 | 1 |
| Uniwersytet Warszawski | education · PL | 17 | 3 |
| Bydgoszcz | city · PL | 13 | 7 |
| Wrocław | city · PL | 12 | 2 |
| Uniwersytet Marii Curie-Skłodowskiej | education · PL | 9 | 9 |
| Politechnika Gdańska | education · PL | 8 | 22 |
| Bundestag | government · DE | 5 | 10 |
| Gdynia | city · PL | 5 | 7 |
| King County | government · US | 4 | 13 |
| Warszawa | city · PL | 4 | 20 |
| State of Washington | government · US | 3 | 8 |
| Technische Universität München | education · DE | 3 | 12 |
| Universität Hamburg | education · DE | 3 | 37 |
| Lublin | city · PL | 2 | 17 |
| Polski Instytut Sztuki Filmowej | culture · PL | 2 | 7 |
| RWTH Aachen | education · DE | 2 | 18 |
| Stuttgart | city · DE | 2 | 6 |
| Uniwersytet Mikołaja Kopernika | education · PL | 2 | 7 |
| Bundesnetzagentur | government · DE | 1 | 9 |
| Główny Urząd Statystyczny | government · PL | 1 | 16 |
| Las Vegas | city · US | 1 | 8 |
| Muzeum Narodowe w Warszawie | culture · PL | 1 | 11 |
| Radom | city · PL | 1 | 2 |
| Teatr Wielki Opera Narodowa | culture · PL | 1 | 3 |
| Uniwersytet Wrocławski | education · PL | 1 | 13 |
| Uniwersytet im. Adama Mickiewicza | education · PL | 1 | 12 |
| Warszawski Uniwersytet Medyczny | education · PL | 1 | 13 |
One page per body, measured by automated checks on a weekly schedule. Any body that has fixed something since the last sweep will show it at the next one, and every entity page carries a right of reply.
/ Questions about this criterion
Do I have to set line-height 1.5 on my website?
No. 1.4.12 does not prescribe how a page is designed. It requires that nothing is lost when a reader applies the four spacing values on their own. A design with tighter spacing conforms as long as it survives that change. Generous default spacing helps readability, but it is not what this criterion tests.
How do I test text spacing?
Apply all four values at once and look at the result. The quickest way is a text spacing bookmarklet or extension; the manual way is a style rule in the developer tools with line-height 1.5, letter-spacing 0.12em, word-spacing 0.16em and a paragraph margin of 2em, all marked important. Then check every component for clipped or overlapping text.
What are the four text spacing values in WCAG?
Line height of at least 1.5 times the font size, spacing after paragraphs of at least 2 times the font size, letter spacing of at least 0.12 times the font size and word spacing of at least 0.16 times the font size. They are applied together, with no other style changed, and the page must still show all its content and keep all its functions.
