-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a11y: implement media-has-caption rule
- Loading branch information
1 parent
4c135b0
commit 954a34c
Showing
3 changed files
with
61 additions
and
34 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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<video><track kind="captions"/></video> | ||
<video></video> | ||
<video><track /></video> | ||
<audio muted></audio> | ||
<video> | ||
<track kind="captions" /> | ||
</video> | ||
<video /> | ||
<video> | ||
<track /> | ||
</video> | ||
<audio muted /> |
60 changes: 30 additions & 30 deletions
60
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
[ | ||
{ | ||
"code": "a11y-media-has-caption", | ||
"end": { | ||
"character": 55, | ||
"column": 15, | ||
"line": 2 | ||
}, | ||
"message": "A11y: Media elements must have a <track kind=\"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 must have a <track kind=\"captions\">", | ||
"pos": 56, | ||
"start": { | ||
"character": 56, | ||
"column": 0, | ||
"line": 3 | ||
} | ||
} | ||
{ | ||
"code": "a11y-media-has-caption", | ||
"end": { | ||
"character": 55, | ||
"column": 15, | ||
"line": 2 | ||
}, | ||
"message": "A11y: Media elements must have a <track kind=\"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 must have a <track kind=\"captions\">", | ||
"pos": 56, | ||
"start": { | ||
"character": 56, | ||
"column": 0, | ||
"line": 3 | ||
} | ||
} | ||
] |