RAWEBAA
10.12 On each web page, can the text spacing properties be redefined by the user without loss of content or functionality (except in special cases)?
- WCAG references
- 1.4.12 Text Spacing (AA)
- Techniques
- C8
- C21
- C35
- C36
- F104
Official methodology to test criterion 10.12
Test 1 (10.12.1)
- Modify the document styles by giving
- a value of 1.5 to the
line-heightproperty of all document elements; - a value of 2em to the
margin-bottomproperty of the<p>elements; - a value of 0.12em for the
letter-spacingproperty of all the elements in the document; - a value of 0.16em for the
word-spacingproperty of all the elements in the document.
- a value of 1.5 to the
- For each passage of text, check that it remains legible, with the exception of
- subtitles or captions directly integrated into a video;
- images of text;
- text within a
<canvas>tag.
- If this is the case for each passage of text, the test is validated.
Note: an implementation of these modification rules is available in the WCAG 1.4.12 success criteria resources (https://github.com/alastc/adaptation-scripts/blob/master/scripts/text-adaptation.js).