-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(820): check if media has captions
- Loading branch information
1 parent
55c8096
commit d88d58e
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<video><track kind="captions"/></video> | ||
<video></video> | ||
<video><track /></video> | ||
<audio muted></audio> |
32 changes: 32 additions & 0 deletions
32
test/validator/samples/a11y-media-has-caption/warnings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
"code": "a11y-media-has-caption", | ||
"end": { | ||
"character": 55, | ||
"column": 15, | ||
"line": 2 | ||
}, | ||
"message": "A11y: Media elements such as <audio> and <video> must have a <track> for captions.", | ||
"pos": 40, | ||
"start": { | ||
"character": 40, | ||
"column": 0, | ||
"line": 2 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-media-has-caption", | ||
"end": { | ||
"character": 80, | ||
"column": 24, | ||
"line": 3 | ||
}, | ||
"message": "A11y: Media elements such as <audio> and <video> must have a <track> for captions.", | ||
"pos": 56, | ||
"start": { | ||
"character": 56, | ||
"column": 0, | ||
"line": 3 | ||
} | ||
} | ||
] |