summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webvtt/rendering/cues-with-video/processing-model/enable_controls_reposition.html
blob: 7bfb8d9ff56e52a7016c9244cbdff5f973caecde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html>
<html class="reftest-wait">
<title>WebVTT rendering, cue reposition after enabling controls</title>
<link rel="match" href="enable_controls_reposition-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
video {
  outline: solid;
  width: 320px;
  height: 240px;
}
::cue {
  font-family: Ahem, sans-serif;
  font-size: 50px;
  color: green;
}
</style>
<script src="/common/reftest-wait.js"></script>
<video autoplay onplaying="this.onplaying = null;
                           this.pause();
                           this.currentTime = 0;
                           setTimeout(function(video){
                             video.controls = true;
                           }, 100, this);
                           takeScreenshotDelayed(1000);">
    <source src="/media/white.webm" type="video/webm">
    <source src="/media/white.mp4" type="video/mp4">
    <track src=support/foo.vtt>
    <script>
    document.getElementsByTagName('track')[0].track.mode = 'showing';
    </script>
</video>