ACT Rules for WCAG 2.0

ACT-R2 Validation Tests

Back to rule: ACT-R2

Elements with data-outcome="inapplicable" should be ignored by the rule. Elements with data-outcome="failed" should be returned as failed, and those with data-outcome="passed" should be passed. Other elements may match other rules, these results should be ignored for the purpose of this test file.

step-1-pass

<img src="../assets/sample-image.jpg"
  aria-describedby="imgdesc1">
<img src="../assets/sample-image.jpg"
  aria-describedby="imgdesc1 imgdesc1-a">

step-1-fail

<img src="../assets/sample-image.jpg"
  aria-describedby="imgdesc1-fail">

step-2-pass

<img src="../assets/sample-image.jpg"
  aria-describedby="imgdesc2-a imgdesc2-b">
<div id="imgdesc2-b">Description</div>
Description

step-2-fail

<img src="../assets/sample-image.jpg"
  aria-describedby="imgdesc2-a imgdesc2-b">
<div id="imgdesc2-c">Description</div>
Description
<img src="../assets/sample-image.jpg"
  aria-describedby="">

step-3-pass

<img src="../assets/sample-image.jpg"
  alt="Sunrise"
  aria-describedby="imgdesc3-a">
<div id="imgdesc3-a">The sun is rising 
  over a jetty by a lake</div>
Sunrise
The sun is rising over a jetty by a lake

step-3-fail

<img src="../assets/sample-image.jpg"
  alt="Sunrise"
  aria-describedby="imgdesc3-b">
<div id="imgdesc3-b">Rabbits</div>
Sunrise
Rabbits

Inapplicable

<img src="../assets/sample-image.jpg">
<img src="../assets/sample-image.jpg"
  alt="The image is described in the text below">
The image is described in the text below
<div aria-describedby="divdesc"></div>
<div id="divdesc">Description</div>
Description

Back to rule: ACT-R2