Comment tester le critère 1.1.1 « Contenu non textuel — Tout contenu non textuel présenté à l’utilisateur a un équivalent textuel qui remplit une fonction équivalente sauf dans les situations énumérées ci-dessous. »
- References WCAG
- 1.1.1 Contenu non textuel (A)
Ce que dit ce critère
Tout contenu non textuel présenté à l’utilisateur a un équivalent textuel qui remplit une fonction équivalente sauf dans les situations énumérées ci-dessous.
- Composant d’interface ou de saisie
-
si le contenu non textuel est un composant d’interface ou s’il permet la saisie d’informations par l’utilisateur, alors il a un nom qui décrit sa fonction. (Se référer au Critère de succès 4.1.2 pour des exigences supplémentaires à propos des composants d’interfaces utilisateur ou des contenus qui permettent la saisie d’informations par l’utilisateur.)
- Média temporel
-
si le contenu non textuel est un média temporel, alors l’équivalent textuel fournit au moins une identification descriptive du contenu non textuel. (Se référer à la Règle 1.2 pour des exigences supplémentaires concernant les médias temporels.)
- Test
-
si le contenu non textuel est un test ou un exercice qui serait invalide s’il était présenté en texte, alors l’équivalent textuel fournit au moins une identification descriptive du contenu non textuel.
- Contenu sensoriel
-
si le contenu non textuel vise d’abord à créer une expérience sensorielle spécifique, l’équivalent textuel fournit au moins une identification descriptive de ce contenu non textuel.
- CAPTCHA
-
si ce contenu non textuel vise à confirmer que le contenu est consulté par une personne plutôt que par un ordinateur, alors un équivalent textuel est fourni pour identifier et décrire la fonction du contenu non textuel, et des formes alternatives du CAPTCHA sont proposées pour différents types de perception sensorielle afin d’accommoder différents types de limitations fonctionnelles.
- Décoration, formatage, invisibilité
-
si le contenu non textuel est purement décoratif, s’il est utilisé seulement pour un formatage visuel ou s’il n’est pas présenté à l’utilisateur, alors il est implémenté de manière à être ignoré par les technologies d’assistance.
Méthodologie officielle pour tester le critère 1.1.1
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: If a short description can serve the same purpose and present the same information as the non-text content:
Short text alternative techniques for Situation A
- ARIA6 Using aria-label to provide labels for objects
- ARIA10 Using aria-labelledby to provide a text alternative for non-text content
- G196 Using a text alternative on one item within a group of images that describes all items in the group
- H2 Combining adjacent image and text links for the same resource
- H37 Using alt attributes on img elements
- H53 Using the body of the object element
- H86 Providing text alternatives for emojis, emoticons, ASCII art, and leetspeak
- PDF1 Applying text alternatives to images with the Alt entry in PDF documents
Situation B: If a short description can <strong>not</strong> serve the same purpose and present the same information as the non-text content (e.g., a chart or diagram):
Short text alternative techniques for Situation B
- ARIA6 Using aria-label to provide labels for objects
- ARIA10 Using aria-labelledby to provide a text alternative for non-text content
- G196 Using a text alternative on one item within a group of images that describes all items in the group
- H2 Combining adjacent image and text links for the same resource
- H37 Using alt attributes on img elements
- H53 Using the body of the object element
- H86 Providing text alternatives for emojis, emoticons, ASCII art, and leetspeak
- PDF1 Applying text alternatives to images with the Alt entry in PDF documents
Long text alternative techniques for Situation B
- ARIA15 Using aria-describedby to provide descriptions of images
- G73 Providing a long description in another location with a link to it that is immediately adjacent to the non-text content
- G74 Providing a long description in text near the non-text content, with a reference to the location of the long description in the short description
- G92 Providing long description for non-text content that serves the same purpose and presents the same information
- H53 Using the body of the object element
Situation C: If non-text content is a control or accepts user input:
Text alternative techniques for controls and input for Situation C
- ARIA6 Using aria-label to provide labels for objects
- ARIA9 Using aria-labelledby to concatenate a label from several text nodes
- H24 Providing text alternatives for the area elements of image maps
- H30 Providing link text that describes the purpose of a link for anchor elements
- H36 Using alt attributes on images used as submit buttons
- H44 Using label elements to associate text labels with form controls
- H65 Using the title attribute to identify form controls when the label element cannot be used
Situation D: If non-text content is time-based media (including live video-only and live audio-only); a test or exercise that would be invalid if presented in text; or primarily intended to create a specific sensory experience:
- Providing a descriptive label
- G68 Providing a short text alternative that describes the purpose of live audio-only and live video-only content
- G100 Providing a short text alternative which is the accepted name or a descriptive name of the non-text content
Short text alternative techniques for Situation D
- ARIA6 Using aria-label to provide labels for objects
- ARIA10 Using aria-labelledby to provide a text alternative for non-text content
- G196 Using a text alternative on one item within a group of images that describes all items in the group
- H2 Combining adjacent image and text links for the same resource
- H37 Using alt attributes on img elements
- H53 Using the body of the object element
- H86 Providing text alternatives for emojis, emoticons, ASCII art, and leetspeak
- PDF1 Applying text alternatives to images with the Alt entry in PDF documents
Situation E: If non-text content is a CAPTCHA:
Situation F: If the non-text content should be ignored by assistive technology:
- Implementing or marking the non-text content so that it will be ignored by assistive technology
Techniques to indicate that text alternatives are not required for Situation F
Techniques complémentaires
Échecs courants
- F3 Failure of Success Criterion 1.1.1 due to conveying information exclusively using CSS background images
- F13 Failure of Success Criterion 1.1.1 and 1.4.1 due to having a text alternative that does not include information that is conveyed by color differences in the image
- F20 Failure of Success Criterion 1.1.1 and 4.1.2 due to not updating text alternatives when changes to non-text content occur
- F30 Failure of Success Criterion 1.1.1 and 1.2.1 due to using text alternatives that are not alternatives (e.g., filenames or placeholder text)
- F38 Failure of Success Criterion 1.1.1 due to not marking up decorative images in HTML in a way that allows assistive technology to ignore them
- F39 Failure of Success Criterion 1.1.1 due to providing a text alternative that is not null (e.g., alt="spacer" or alt="image") for images that should be ignored by assistive technology
- F65 Failure of Success Criterion 1.1.1 due to omitting the alt attribute or text alternative on img elements, area elements, and input elements of type "image"
- F67 Failure of Success Criterion 1.1.1 and 1.2.1 due to providing long descriptions for non-text content that does not serve the same purpose or does not present the same information
- F71 Failure of Success Criterion 1.1.1 due to using text look-alikes to represent text without providing a text alternative
- F72 Failure of Success Criterion 1.1.1 due to using ASCII art without providing a text alternative