forked from sveltejs/svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a11y-media-has-caption check (sveltejs#5075)
- Loading branch information
1 parent
ce1e24c
commit c44e131
Showing
5 changed files
with
60 additions
and
5 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
4 changes: 2 additions & 2 deletions
4
test/css/samples/omit-scoping-attribute-attribute-selector/expected.html
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,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> |
6 changes: 3 additions & 3 deletions
6
test/css/samples/omit-scoping-attribute-attribute-selector/input.svelte
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,10 +1,10 @@ | ||
<div> | ||
<video autoplay></video> | ||
<video></video> | ||
<video autoplay muted></video> | ||
<video muted></video> | ||
</div> | ||
|
||
<style> | ||
[autoplay] { | ||
color: red; | ||
} | ||
</style> | ||
</style> |
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 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 | ||
} | ||
} | ||
] |