Skip to content

Latest commit

 

History

History
152 lines (112 loc) · 5.08 KB

video-only-element-transcript-ee13b5.md

File metadata and controls

152 lines (112 loc) · 5.08 KB
id name rule_type description test_aspects authors
ee13b5
video only element has transcript
atomic
Non-streaming `video` elements without audio must have all visual information available in a transcript.
DOM Tree
CSS Styling
Audio output
Visual output
Wilco Fiers
Brian Bors

Test Procedure

Applicability

The rule applies to any non-streaming video element visible where the video doesn't contain audio.

Expectation

The visual information of each test target is available through a text transcript that is available either on the page or through a link. The text transcript needs to be visibile and included-in-the-accessibility-tree.

Note: A "text transcript" in the context of this rule is defined in WCAG 2 as an alternative for time based media.

Assumptions

This rule assumes that a mechanism is available to start the video and that the video element is not simply used to display the poster.

Accessibility support

There are no major accessibility support issues known for this rule.

Background

Test Cases

Passed

Pass example 1

A silent video element with a text transcript on the same page.

<video controls data-rule-target>
  <source src="../test-assets/rabbit-video/silent.mp4" type="video/mp4"></source>
  <source src="../test-assets/rabbit-video/silent.webm" type="video/webm"></source>
</video>
<p>The above video shows a giant fat rabbit climbing out of a hole in the ground.
He stretches, yaws, and then starts walking.
Then he stops to scratch his bottom.</p>

Pass example 2

A silent video element with a link to a text transcript on a different page.

<video controls data-rule-target>
  <source src="../test-assets/rabbit-video/silent.mp4" type="video/mp4"></source>
  <source src="../test-assets/rabbit-video/silent.webm" type="video/webm"></source>
</video>
<a href="/test-assets/rabbit-video-transcript.html">Transcript</p>

Failed

Fail example 1

A silent video element with an incorrect text transcript on the same page.

<video controls data-rule-target>
  <source src="../test-assets/rabbit-video/silent.mp4" type="video/mp4"></source>
  <source src="../test-assets/rabbit-video/silent.webm" type="video/webm"></source>
</video>
<p>The above video shows a giant fat dog climbing out of a hole in the ground.
He stretches, yaws, and then starts walking.
Then he stops to scratch his bottom.</p>

Fail example 2

A silent video element with a link to an incorrect text transcript on a different page.

<video controls data-rule-target>
  <source src="../test-assets/rabbit-video/silent.mp4" type="video/mp4"></source>
  <source src="../test-assets/rabbit-video/silent.webm" type="video/webm"></source>
</video>
<a href="/test-assets/rabbit-video-incorrect-transcript.html">Transcript</p>

Failed example 3

A silent video element with an invisible text transcript on the same page.

<video controls data-rule-target>
  <source src="../test-assets/rabbit-video/silent.mp4" type="video/mp4"></source>
  <source src="../test-assets/rabbit-video/silent.webm" type="video/webm"></source>
</video>
<p style="text-indent: -9999px;">The above video shows a giant fat rabbit climbing out of a hole in the ground.
He stretches, yaws, and then starts walking.
Then he stops to scratch his bottom.</p>

Failed example 4

A silent video element with a text transcript on the same page that is not included in the accessibility tree.

<video controls data-rule-target>
  <source src="../test-assets/rabbit-video/silent.mp4" type="video/mp4"></source>
  <source src="../test-assets/rabbit-video/silent.webm" type="video/webm"></source>
</video>
<p aria-hidden="true">The above video shows a giant fat rabbit climbing out of a hole in the ground.
He stretches, yaws, and then starts walking.
Then he stops to scratch his bottom.</p>

Inapplicable

Inapplicable example 1

A silent video element that is not visible on the page.

<video controls style="display: none;" data-rule-target>
  <source src="../test-assets/rabbit-video/silent.mp4" type="video/mp4"></source>
  <source src="../test-assets/rabbit-video/silent.webm" type="video/webm"></source>
</video>
<a href="/test-assets/rabbit-video-transcript.html">Transcript</p>

Inapplicable example 2

A video element with audio.

<video controls data-rule-target>
  <source src="../test-assets/rabbit-video/video.mp4" type="video/mp4"></source>
  <source src="../test-assets/rabbit-video/video.webm" type="video/webm"></source>
</video>
<a href="/test-assets/rabbit-video-transcript.html">Transcript</p>