input type=color element test

Pass Criteria

Reference

Test ci-001: Unlabelled input type="color"

Code

<input id="input1" type="color" />

Test ci-002: Input type="color" with aria-label

Aria-label should be used as accessible name

No accessible description.

Code

<input id="input2" type="color" aria-label="aria-label attribute" />

Test ci-003: Input type="color" with aria-labelledby

p referenced by aria-labelledby

Aria-labelledby should be used as accessible name

No accessible description.

Code

<p id="ci-003-labelledby">p referenced by aria-labelledby</p>
<input id="input3" type="color" aria-labelledby="ci-003-labelledby" />

Test ci-004: Input type="color" with label

Label should be used as accessible name

No accessible description.

Code

<label>label wrapping input <input id="input4" type="color" /></label>

Test ci-005: Input type="color" with title attribute

Title should be used as accessible name

No accessible description.

Code

<input id="input5" type="color" title="title attribute" />

Test ci-006: Input type="color" with aria-describedby

p referenced by aria-describedby

Aria-describedby should be used as accessible description

No accessible name.

Code

<input id="input6" type="color" aria-describedby="ci-006-describedby" />
<p id="ci-006-describedby">p referenced by aria-describedby</p>

Test ci-007: Input type="color" with label element & title attribute

Label should be used as accessible name

Title should be used as accessible description

Code

<label for="input7">label referenced by for/id attributes</label>
<input id="input7" type="color" title="title attribute" />