Comment tester le critère 1.4.3 « Contraste (minimum) — La présentation visuelle du texte et du texte sous forme d’image a un rapport de contraste d’au moins 4,5:1, sauf dans les cas suivants : »
- References WCAG
- 1.4.3 Contraste (minimum) (AA)
Ce que dit ce critère
La présentation visuelle du texte et du texte sous forme d’image a un rapport de contraste d’au moins 4,5:1, sauf dans les cas suivants :
- Texte agrandi
-
le texte agrandi et le texte agrandi sous forme d’image ont un rapport de contraste d’au moins 3:1.
- Texte décoratif
-
aucune exigence de contraste pour le texte ou le texte sous forme d’image qui fait partie d’un composant d’interface utilisateur inactif, qui est purement décoratif, qui est invisible pour tous ou qui est une partie d’une image contenant un autre contenu significatif.
- Logotypes
-
aucune exigence de contraste pour le texte faisant partie d’un logo ou d’un nom de marque.
Méthodologie officielle pour tester le critère 1.4.3
Techniques officielles du W3C
Le W3C ne publie pas de procédure de test pour ce critère. Il publie des techniques : des façons documentées de le satisfaire, et les échecs qui ne le satisfont pas.
Techniques suffisantes
Situation A: text is less than 18 point if not bold and less than 14 point if bold
- G18 Ensuring that a contrast ratio of at least 4.5:1 exists between text (and images of text) and background behind the text
- G148 Not specifying background color, not specifying text color, and not using technology features that change those defaults
- G174 Providing a control with a sufficient contrast ratio that allows users to switch to a presentation that uses sufficient contrast
Situation B: text is at least 18 point if not bold and at least 14 point if bold
- G145 Ensuring that a contrast ratio of at least 3:1 exists between text (and images of text) and background behind the text
- G148 Not specifying background color, not specifying text color, and not using technology features that change those defaults
- G174 Providing a control with a sufficient contrast ratio that allows users to switch to a presentation that uses sufficient contrast
Techniques complémentaires
Échecs courants
- F24 Failure of Success Criterion 1.4.3, 1.4.6 and 1.4.8 due to specifying foreground colors without specifying background colors or vice versa
- F83 Failure of Success Criterion 1.4.3 and 1.4.6 due to using background images that do not provide sufficient contrast with foreground text (or images of text)