-
Notifications
You must be signed in to change notification settings - Fork 82
Update ee13b5 and 1a02b0 rules to clarify that transcript for video content does not need to be visible #2187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
0d83c20
0cbfe66
86a5ee6
551e806
609219d
b3a092e
922d9bf
f2b99f7
4c44dad
7f864e7
a70a1ba
739ec88
ea3f6e4
dd37459
c4c48c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
|
@@ -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. | ||
|
|
||
| **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 | ||
|
|
||
|
|
@@ -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">` | ||
|
|
@@ -97,6 +102,34 @@ 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> | ||
| ``` | ||
|
|
||
|
giacomo-petri marked this conversation as resolved.
|
||
| #### Passed Example 4 | ||
|
|
||
| A video element with an associated track element that contains captions for all the audio and a transcript on the page. | ||
|
|
||
| ```html | ||
| <html lang="en"> | ||
| <video src="/test-assets/perspective-video/perspective-video.mp4" controls> | ||
| <track src="/test-assets/perspective-video/perspective-caption.vtt" kind="captions" /> | ||
| </video> | ||
| <p> Web Accessibility Perspectives: Keyboard Accessibility. Not being able to use your computer because your mouse doesn't work, is frustrating. (A computer user's mouse breaks when it falls off the desk.) Many people use only the keyboard to navigate websites. Either through preference or circumstance. (A person wearing a sling on her arm typing with one hand.) </p> | ||
| </html> | ||
| ``` | ||
|
kengdoj marked this conversation as resolved.
|
||
| ### Failed | ||
|
|
||
| #### Failed Example 1 | ||
|
|
@@ -129,6 +162,33 @@ 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 | ||
|
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
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This collides with the changes made in #2064.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for catching that. Requested more details in #2186
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
giacomo-petri marked this conversation as resolved.
|
||
| #### Failed Example 4 | ||
|
|
||
| A video element with audio does not have a text transcript. | ||
|
|
||
| ```html | ||
| <html lang="en"> | ||
| <video src="/test-assets/perspective-video/perspective-video.mp4" controls> | ||
| <track src="/test-assets/perspective-video/perspective-caption.vtt" kind="captions" /> | ||
| </video> | ||
| </html> | ||
| ``` | ||
|
kengdoj marked this conversation as resolved.
|
||
| ### Inapplicable | ||
|
|
||
| #### Inapplicable Example 1 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.