mirror of https://github.com/sveltejs/svelte
add a11y-media-has-caption check (#5075)
parent
308f3c284d
commit
fb51dd8f07
@ -1,2 +1,2 @@
|
||||
<div><video class="svelte-xyz" autoplay></video>
|
||||
<video></video></div>
|
||||
<div><video class="svelte-xyz" autoplay muted></video>
|
||||
<video muted></video></div>
|
||||
|
@ -1,10 +1,10 @@
|
||||
<div>
|
||||
<video autoplay></video>
|
||||
<video></video>
|
||||
<video autoplay muted></video>
|
||||
<video muted></video>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
[autoplay] {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
@ -0,0 +1,4 @@
|
||||
<video><track kind="captions"/></video>
|
||||
<video></video>
|
||||
<video><track /></video>
|
||||
<audio muted></audio>
|
@ -0,0 +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
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in new issue