diff --git a/_rules/audio-transcript-2eb176.md b/_rules/audio-transcript-2eb176.md index 25a28d92d3..bfe74271ce 100755 --- a/_rules/audio-transcript-2eb176.md +++ b/_rules/audio-transcript-2eb176.md @@ -5,6 +5,10 @@ rule_type: atomic description: | This rule checks that `audio` elements have a transcript that includes all auditory information. accessibility_requirements: + wcag20:1.2.1: # Audio-only and Video-only (Prerecorded) (A) + secondary: This success criterion is **less strict** than this rule. This is because the rule does not consider that the audio may be a media alternative for text. Some of the failed examples satisfy this success criterion. + wcag20:1.3.1: # Info and Relationships (A) + secondary: This success criterion is **more strict** than this rule. This is because the rule is not intended to test this requirement. Some of the passed examples do not satisfy this success criterion. input_aspects: - DOM Tree - CSS Styling @@ -13,6 +17,7 @@ input_aspects: acknowledgments: authors: - Brian Bors + - Helen Burge - Wilco Fiers funding: - WAI-Tools @@ -22,20 +27,20 @@ acknowledgments: ## Applicability -This rule applies to every [non-streaming](#non-streaming-media-element) `audio` element that is: +This rule applies to every [non-streaming](#non-streaming-media-element) `audio` element for which at least one of the following is true: -- playing; or, -- has a [play button][] that is [visible][] and [included in the accessibility tree][]. +- the element has an [autoplay][] [attribute value][] of `true`; or +- the element has a [play button][] that is [visible][] and [included in the accessibility tree][]. ## Expectation -The auditory information of each test target is available through a text transcript. That text transcript is [visible][] and [included in the accessibility tree][], either on the page or through a link. +The auditory information of each test target is available through a text transcript. That text transcript is [visible][], either on the page or through a [clearly labeled location][]. **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 -There are no assumptions. +If a transcript is present, it is assumed it is in the accessibility tree. In order to satisfy WCAG, transcripts need to be available for all users, not just sighted users. This rule does not test this, and it needs to be tested separately. ## Accessibility Support @@ -43,6 +48,8 @@ There are no accessibility support issues known. ## Background +Some major browsers do not automatically play the 'video' unless it is muted, which makes the rule inapplicable in these browsers. The rule still applies to browsers that [autoplay][] an audible 'video'. + ### Bibliography - [Understanding SC 1.2.1:Audio-only and Video-only (Prerecorded)](https://www.w3.org/WAI/WCAG22/Understanding/audio-only-and-video-only-prerecorded) @@ -81,7 +88,7 @@ This `audio` element has native player controls and an external transcript. #### Passed Example 3 -This `audio` element has an `autoplay` attribute and an external transcript. +This `audio` element has an [autoplay][] attribute and an external transcript. ```html @@ -90,6 +97,22 @@ This `audio` element has an `autoplay` attribute and an external transcript. ``` +#### Passed Example 4 + +This `audio` element has native player controls and an internal transcript that is not exposed to the accessibility tree. + +```html + + + + +``` + ### Failed #### Failed Example 1 @@ -131,7 +154,7 @@ This `audio` element has native player controls and an incorrect external transc #### Failed Example 4 -This `audio` element has an `autoplay` attribute and an incorrect external transcript. +This `audio` element has an [autoplay][] attribute and an incorrect external transcript. ```html @@ -156,22 +179,6 @@ This `audio` element has native player controls and a [non-visible][visible] int ``` -#### Failed Example 6 - -This `audio` element has native player controls and an internal transcript that is not exposed to the accessibility tree. - -```html - - - - -``` - ### Inapplicable #### Inapplicable Example 1 @@ -194,6 +201,7 @@ This `audio` element has hidden native player controls. ``` -[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree' [play button]: #play-button 'Definition of play button' [visible]: #visible 'Definition of visible' +[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree' +[autoplay]: #autoplay 'Definition of autoplay' diff --git a/_rules/video-only-transcript-ee13b5.md b/_rules/video-only-transcript-ee13b5.md index 91d134dc0f..8f1cac9ac1 100755 --- a/_rules/video-only-transcript-ee13b5.md +++ b/_rules/video-only-transcript-ee13b5.md @@ -10,6 +10,10 @@ accessibility_requirements: failed: not satisfied passed: further testing needed inapplicable: further testing needed +wcag20:1.2.1: # Audio-only and Video-only (Prerecorded) (A) + secondary: This success criterion is **less strict** than this rule. This is because the rule does not consider that the video may be a media alternative for text. Some of the failed examples satisfy this success criterion. + wcag20:1.3.1: # Info and Relationships (A) + secondary: This success criterion is **more strict** than this rule. This is because the rule is not intended to test this requirement. Some of the passed examples do not satisfy this success criterion. input_aspects: - DOM Tree - CSS Styling @@ -19,6 +23,7 @@ input_aspects: acknowledgments: authors: - Brian Bors + - Helen Burge - Wilco Fiers funding: - WAI-Tools @@ -36,11 +41,11 @@ 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 [visible][], and is either on the page or in a clearly labeled location. ## 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). +If a transcript is present, it is assumed it is in the accessibility tree. In order to satisfy WCAG, transcripts need to be available for all users, not just sighted users. This rule does not test this, and it needs to be tested separately. ## Accessibility Support @@ -48,7 +53,7 @@ There are no accessibility support issues known. ## Background -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). +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). ### Bibliography @@ -89,11 +94,9 @@ This `video` element, which has no audio, has a transcript which conveys informa ``` -### Failed - -#### Failed Example 1 +#### Passed Example 3 -This `video` element, which has no audio, has an incorrect text transcript available on the same page. +This `video` element, which has no audio, has a text transcript available on the same page, but the transcript is not [included in the accessibility tree][]. ```html @@ -101,15 +104,17 @@ This `video` element, which has no audio, has an incorrect text transcript avail -

The above video shows a giant fat dog climbing out of a hole in the ground. +

``` -#### Failed Example 2 +### Failed -This `video` element, which has no audio, has an incorrect text transcript available through a link on the same page. +#### Failed Example 1 + +This `video` element, which has no audio, has an incorrect text transcript available on the same page. ```html @@ -117,13 +122,15 @@ This `video` element, which has no audio, has an incorrect text transcript avail -Transcript +

The above video shows a giant fat dog climbing out of a hole in the ground. +He stretches, yawns, and then starts walking. +Then he stops to scratch his bottom.

``` -#### Failed Example 3 +#### Failed Example 2 -This `video` element, which has no audio, has a text transcript available on the same page, but the transcript is not [visible][]. +This `video` element, which has no audio, has an incorrect text transcript available through a link on the same page. ```html @@ -131,15 +138,13 @@ This `video` element, which has no audio, has a text transcript available on the -

The above 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.

+Transcript ``` -#### Failed Example 4 +#### Failed Example 3 -This `video` element, which has no audio, has a text transcript available on the same page, but the transcript is not [included in the accessibility tree][]. +This `video` element, which has no audio, has a text transcript available on the same page, but the transcript is not [visible][]. ```html @@ -147,7 +152,7 @@ This `video` element, which has no audio, has a text transcript available on the -

The above 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.

@@ -183,5 +188,4 @@ This `video` element is not [visible][]. ``` -[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree' [visible]: #visible 'Definition of visible' diff --git a/_rules/video-transcript-1a02b0.md b/_rules/video-transcript-1a02b0.md index bf66b19e91..c0bdc84857 100755 --- a/_rules/video-transcript-1a02b0.md +++ b/_rules/video-transcript-1a02b0.md @@ -24,6 +24,7 @@ input_aspects: acknowledgments: authors: - Brian Bors + - Helen Burge - Wilco Fiers funding: - WAI-Tools @@ -41,13 +42,13 @@ 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 [visible][], and is either on the page or in a clearly labeled location. **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). +If a transcript is present, it is assumed it is in the accessibility tree. In order to satisfy WCAG, transcripts need to be available for all users, not just sighted users. This rule does not test this, and it needs to be tested separately. ## Accessibility Support @@ -55,6 +56,8 @@ There are no accessibility support issues known. ## Background +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). + ### Bibliography - [Understanding Success Criterion 1.2.3: Audio Description or Media Alternative (Prerecorded)](https://www.w3.org/WAI/WCAG22/Understanding/audio-description-or-media-alternative-prerecorded) @@ -145,5 +148,4 @@ A video element that is not [visible][]. ``` -[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree' [visible]: #visible 'Definition of visible'