Skip to content

Commit

Permalink
docs: fix a11y warning in media elements tutorial (sveltejs#5523)
Browse files Browse the repository at this point in the history
  • Loading branch information
irshad authored and taylorzane committed Dec 17, 2020
1 parent 7d330d8 commit 170b953
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@
poster="https://sveltejs.github.io/assets/caminandes-llamigos.jpg"
src="https://sveltejs.github.io/assets/caminandes-llamigos.mp4"
on:mousemove={handleMousemove}
on:mousedown={handleMousedown}
></video>
on:mousedown={handleMousedown}>
<track kind="captions">
</video>

<div class="controls" style="opacity: {duration && showControls ? 1 : 0}">
<progress value="{(time / duration) || 0}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@
on:mousedown={handleMousedown}
bind:currentTime={time}
bind:duration
bind:paused
></video>
bind:paused>
<track kind="captions">
</video>

<div class="controls" style="opacity: {duration && showControls ? 1 : 0}">
<progress value="{(time / duration) || 0}"/>
Expand Down

0 comments on commit 170b953

Please sign in to comment.