Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 27 additions & 5 deletions _rules/video-only-transcript-ee13b5.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ accessibility_requirements:
failed: not satisfied
passed: further testing needed
inapplicable: further testing needed
wcag20:1.3.1: # Info and Relationships (A)
secondary: This success criterion is **related** to this rule. This is because this criterion applies to a visible transcript.
wcag20:1.2.1: # Audio-only and Video-only (Prerecorded) (A)
secondary: This success criterion is **less strict** than this rule. This is because this criterion does not require a transcript when the audio-only or video-only is a media alternative for text and is clearly labeled as such. Some of the failed examples may satisfy this success criterion.

input_aspects:
- DOM Tree
- CSS Styling
Expand All @@ -36,11 +41,12 @@ This rule applies to any [non-streaming](#non-streaming-media-element) `video` e

## Expectation

The visual information of each test target is available through a text transcript that is [visible][], [included in the accessibility tree][], and is either on the page or linked.
The visual information of each test target is available through a text transcript that is [included in the accessibility tree][], and is either on the page or linked.

## Assumptions

A mechanism is available to start the video and that the video element is not simply used to display the [poster](https://www.w3.org/TR/html5/semantics-embedded-content.html#element-attrdef-video-poster).
- A mechanism is available to start the video and that the video element is not simply used to display the [poster](https://www.w3.org/TR/html5/semantics-embedded-content.html#element-attrdef-video-poster).
- Users who are not visually impaired can comprehend the contents of the video through visual cues and information presented visually.

## Accessibility Support

Expand All @@ -61,7 +67,7 @@ A "text transcript" in the context of this rule is defined in WCAG 2 as an [alte

#### Passed Example 1

This `video` element, which has no audio, has a text transcript available on the same page.
This `video` element, which has no audio, has a visible text transcript available on the same page.

```html
<html lang="en">
Expand Down Expand Up @@ -89,6 +95,22 @@ This `video` element, which has no audio, has a transcript which conveys informa
</html>
```

#### Passed Example 3

This `video` element, which has no audio, has a non-visible text transcript available on the same page.

```html
<html lang="en">
<video controls>
<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="position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;">This video shows a giant fat rabbit climbing out of a hole in the ground.
He stretches, yawns, and then starts walking.
Then he stops to scratch his bottom.</p>
</html>
```

### Failed

#### Failed Example 1
Expand Down Expand Up @@ -131,7 +153,7 @@ This `video` element, which has no audio, has a text transcript available on the
<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.
<p style="text-indent: -9999px;">This video shows a giant fat rabbit climbing out of a hole in the ground.
He stretches, yawns, and then starts walking.
Then he stops to scratch his bottom.</p>
</html>
Expand All @@ -147,7 +169,7 @@ This `video` element, which has no audio, has a text transcript available on the
<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.
<p aria-hidden="true">This video shows a giant fat rabbit climbing out of a hole in the ground.
He stretches, yawns, and then starts walking.
Then he stops to scratch his bottom.</p>
</html>
Expand Down
43 changes: 40 additions & 3 deletions _rules/video-transcript-1a02b0.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ accessibility_requirements:
failed: not satisfied
passed: further testing needed
inapplicable: further testing needed
wcag20:1.3.1: # Info and Relationships (A)
secondary: This success criterion is **related** to this rule. This is because this criterion applies to a visible transcript.
wcag20:1.2.1: # Audio-only and Video-only (Prerecorded) (A)
secondary: This success criterion is **less strict** than this rule. This is because this criterion does not require a transcript when the audio-only or video-only is a media alternative for text and is clearly labeled as such. Some of the failed examples may satisfy this success criterion.
input_aspects:
- DOM Tree
- CSS Styling
Expand All @@ -41,13 +45,14 @@ This rule applies to every [non-streaming](#non-streaming-media-element) `video`

## Expectation

The visual information of each test target is available through a text transcript that is [visible][], [included in the accessibility tree][], and is either on the page or linked.
The visual information of each test target is available through a text transcript that is [included in the accessibility tree][], and is either on the page or linked.
Comment thread
giacomo-petri marked this conversation as resolved.

**Note:** A "text transcript" in the context of this rule is defined in WCAG 2 as an [alternative for time based media](https://www.w3.org/TR/WCAG22/#dfn-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](https://www.w3.org/TR/html5/semantics-embedded-content.html#element-attrdef-video-poster).
- 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](https://www.w3.org/TR/html5/semantics-embedded-content.html#element-attrdef-video-poster).
- Users who are not visually impaired can comprehend the contents of the video through visual cues and information presented visually.

## Accessibility Support

Expand All @@ -69,7 +74,7 @@ There are no accessibility support issues known.

#### Passed Example 1

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

```html
<html lang="en">`
Expand Down Expand Up @@ -97,6 +102,22 @@ A video element with a link to a text transcript on a different page.
</html>
```

#### Passed Example 3

This `video` element has a non-visible text transcript available on the same page.

```html
<html lang="en">
<video controls>
<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>
<p style="position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;">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>
</html>
```

Comment thread
giacomo-petri marked this conversation as resolved.
### Failed

#### Failed Example 1
Expand Down Expand Up @@ -129,6 +150,22 @@ A video element with a link to an incorrect text transcript on a different page.
</html>
```

#### Failed Example 3

This `video` element has a text transcript available on the same page, but the transcript is not [included in the accessibility tree][].

```html
Comment thread
giacomo-petri marked this conversation as resolved.
<html lang="en">
<video controls>
<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>
<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>
</html>
```

Comment on lines +151 to +182
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This collides with the changes made in #2064.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that. Requested more details in #2186

Copy link
Copy Markdown
Collaborator

@kengdoj kengdoj May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is removing "included in the accessibility tree" from the expectation. This will be a passed example since a transcript is available.

#2186 (comment)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is the correct direction. We remove the change from 2064. AG decided that transcripts aren't strictly required to be visible.

Comment thread
giacomo-petri marked this conversation as resolved.
### Inapplicable

#### Inapplicable Example 1
Expand Down