RAWEBA
1.2 Is every decorative image, without a caption, correctly ignored by assistive technologies?
- WCAG references
- 1.1.1 Non-text Content (A)
- 4.1.2 Name, Role, Value (A)
- Techniques
- ARIA4
- C9
- F38
- F39
- G196
- H67
Official methodology to test criterion 1.2
Test 1 (1.2.1)
- Find in the document the decorative images without a legend implemented using an
<img>element. - For each image, check that it has an
aria-hidden="true"attribute. - If not, check that the image has a
role="presentation"orrole="none"attribute and that it does not havearia-labelledby,aria-label, ortitleattributes. - If not, check that the image has an empty
altattribute (alt="") and that it does not havearia-labelledby,aria-label, ortitleattributes. - If this is the case for each image, the test is validated.
Test 2 (1.2.2)
- Find in the document the decorative images implemented using an
<area>element (without ahrefattribute). - For each image, check that the
<area>element has anaria-hidden="true"attribute. - If not, check that the
<area>element has arole="presentation"orrole="none"attribute and that it does not havearia-labelledby,aria-label, ortitleattributes. - If not, check that the
<area>element has an emptyaltattribute (alt="") and that it does not havearia-labelledby,aria-label, ortitleattributes. - If this is the case for each image, the test is validated.
Test 3 (1.2.3)
- Find in the document the decorative images implemented without an image caption using an
<object>element (with atype="image/..."attribute). - For each image, check that the opening
<object>tag does not havearia-labelledby,aria-labelortitleattributes and that it- has a WAI-ARIA
aria-hidden="true"attribute; - and has no text alternative;
- and has no alternative content between the
<object>and</object>tags.
- has a WAI-ARIA
- If this is the case for each image, the test is validated.
Test 4 (1.2.4)
- Find in the document the decorative images without an image caption, implemented using a
<svg>element. - For each image, check that the
<svg>element has a WAI-ARIAaria-hidden="true"attribute. - If this is the case for each image, the test is validated.
Test 5 (1.2.5)
- Find in the document the decorative images without an image caption implemented using a
<canvas>element. - For each image, check that the
<canvas>element has noaria-labelledby,aria-labelortitleattributes and that it- has a WAI-ARIA
aria-hidden="true"attribute; - and has no text alternative;
- and has no alternative content between the
<canvas>and</canvas>tags.
- has a WAI-ARIA
- If this is the case for each image, the test is validated.
Test 6 (1.2.6)
- Find in the document the decorative images without an image caption using an
<embed>element (with atype="image/..."attribute). - For each image, check that the
<embed>element does not havearia-labelledby,aria-labelortitleattributes and that it- has a WAI-ARIA
aria-hidden="true"attribute; - and has no text alternative;
- has a WAI-ARIA
- If this is the case for each image, the test is validated.