Warning:
This wiki has been archived and is now read-only.
SC1-1-1-input-image
From Automated WCAG Monitoring Community Group
Status
Draft
Contents
Description
This test checks that all input elements of the type image have alt attributes where needed (If the image is rendered).
Background
Assumptions
This test makes no assumptions.
Test properties
Property | Possible values |
---|---|
Success Criterion | 1.1.1 Non-text Content |
Test mode | automatic |
Test environment | rendered page |
Test subject | single web page |
Test procedure
Selector
Test mode:
earl:automatic
Select any input elements of the "image" type. The following CSS selector could be used: input[type=image]
Step 1
Test mode:
earl:automatic
- If the input element is not rendered
- Return SC111-input-image-altpass
Property | Value |
---|---|
TestCase | SC111-input-image-alt |
Identifier | SC111-input-image-altpass |
Outcome | passed |
Pointer | position |
Info | Alt not needed for input image is not rendered. |
Step 3
Test mode:
earl:automatic
- If the input element does not contain an alt attribute
- Return SC111-input-image-altfail
Property | Value |
---|---|
TestCase | SC111-input-image-alt |
Identifier | SC111-input-image-altfail |
Outcome | failed |
ErrorMessage | Input element of the image type has no alt attribute. |
Pointer | position |
Info |
- Else
- Return SC111-input-image-altcanttell
Property | Value |
---|---|
TestCase | SC111-input-image-alt |
id | SC111-input-image-altcanttell |
Outcome | cantTell |
ErrorMessage | Human input required |
Pointer | position |
Info | Unable to automatically check that the value of the alt attribute properly describes the input image. |