Skip to content

Commit

Permalink
Update decorative images test (#225)
Browse files Browse the repository at this point in the history
* Update decorative images test

* Fix

* Fix
  • Loading branch information
MewenLeHo authored Feb 17, 2025
1 parent 586302c commit 0e72b7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion json/criteres-wcag-ease-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
"wcag": [
"1.1.1 A"
],
"verifier": "<ul><li>Check the accessible name of the <code>img</code>, <code>area</code>, <code>canvas</code>, <code>SVG</code>, and of those HTML elements with <code>role='img'</code >, and also of those elements <code>input</code> and <code>object</code> that possess the attribute <code>type='image'</code> </li><li>Check that the accessible name is not defined through the <code>title</code> attribute</li><li>For decorative images, check that the alternative text is null</li><li>For complex images, check that an alternative text is provided by content adjacent to the image</li><li>Check that there is no informative image embedded in CSS (<code>background-image</code>)</li><li>For audio and video resources, check that an alternative text is provided by content that is adjacent</li></ul>",
"verifier": "<ul><li>Check the accessible name of the <code>img</code>, <code>area</code>, <code>canvas</code>, <code>SVG</code>, and of those HTML elements with <code>role='img'</code >, and also of those elements <code>input</code> and <code>object</code> that possess the attribute <code>type='image'</code> </li><li>Check that the accessible name is not defined through the <code>title</code> attribute</li><li>For decorative images, check that the <code>alt</code> attribute is null or empty, or the image has a <code>role='presentation'</code> or <code>'none'</code> or an <code>aria-hidden='true'</code> attribute</li><li>For complex images, check that an alternative text is provided by content adjacent to the image</li><li>Check that there is no informative image embedded in CSS (<code>background-image</code>)</li><li>For audio and video resources, check that an alternative text is provided by content that is adjacent</li></ul>",
"moreInfo": "https://a11y-guidelines.orange.com/en/web/develop/textual-content/#structuring-data-tables",
"priority": "P0",
"resultatTest": "nt",
Expand Down
2 changes: 1 addition & 1 deletion json/criteres-wcag-ease-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
"wcag": [
"1.1.1 A"
],
"verifier": "<ul><li>vérifier l'<span lang=\"en\">accessible name</span> des <code>img</code>, <code>area</code>, <code>canvas</code>, <code>input</code> et <code>object type='image'</code>, <code>SVG</code>, <code>role='img'</code></li><li>vérifier que l'<span lang=\"en\">accessible name</span> n'est pas défini par le <code>title</code></li><li>pour les images décoratives, vérifier que l'alternative est vide</li><li>vérifier pour les images complexes qu'une alternative est fournie par un contenu adjacent</li><li>vérifier qu'il n'existe pas d'image portant de l'information intégré en CSS (<code>background-image</code>) </li><li>vérifier pour les contenus audios et videos qu'une alternative est fournie par un contenu adjacent</li></ul>",
"verifier": "<ul><li>vérifier l'<span lang=\"en\">accessible name</span> des <code>img</code>, <code>area</code>, <code>canvas</code>, <code>input</code> et <code>object type='image'</code>, <code>SVG</code>, <code>role='img'</code></li><li>vérifier que le nom accessible n'est pas défini par le <code>title</code></li><li>pour les images décoratives, vérifier que l'attribut <code>alt</code> est vide ou nul, ou que l'image porte un <code>role='presentation'</code> ou <code>'none'</code> ou encore un attribut <code>aria-hidden='true'</code></li><li>vérifier pour les images complexes qu'une alternative est fournie par un contenu adjacent</li><li>vérifier qu'il n'existe pas d'image portant de l'information intégré en CSS (<code>background-image</code>) </li><li>vérifier pour les contenus audios et videos qu'une alternative est fournie par un contenu adjacent</li></ul>",
"moreInfo": "https://a11y-guidelines.orange.com/fr/web/developper/contenu-non-textuel/#fournir-un-equivalent-textuel-pour-les-images-et-les-cadres",
"priority": "P0",
"resultatTest": "nt",
Expand Down

0 comments on commit 0e72b7d

Please # to comment.