Skip to main content
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)

  1. Modify the document styles by giving
    • a value of 1.5 to the line-height property of all document elements;
    • a value of 2em to the margin-bottom property of the <p> elements;
    • a value of 0.12em for the letter-spacing property of all the elements in the document;
    • a value of 0.16em for the word-spacing property of all the elements in the document.
  2. 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.
  3. 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).