OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html class="reftest-wait"> | 2 <html class="reftest-wait"> |
3 <title>WebVTT rendering, cue reposition after disabling controls</title> | 3 <title>WebVTT rendering, cue reposition after disabling controls</title> |
4 <link rel="match" href="disable_controls_reposition-ref.html"> | 4 <link rel="match" href="disable_controls_reposition-ref.html"> |
5 <style> | 5 <style> |
6 video { | 6 video { |
7 outline: solid; | 7 outline: solid; |
8 width: 320px; | 8 width: 320px; |
9 height: 240px; | 9 height: 240px; |
10 } | 10 } |
11 ::cue { | 11 ::cue { |
12 font-family: Ahem, sans-serif; | 12 font-family: Ahem, sans-serif; |
13 font-size: 50px; | 13 font-size: 50px; |
14 color: green; | 14 color: green; |
15 } | 15 } |
16 </style> | 16 </style> |
17 <script src="/common/reftest-wait.js"></script> | 17 <script src="/common/reftest-wait.js"></script> |
18 <video autoplay controls onplaying="this.onplaying = null; | 18 <video autoplay controls onplaying="this.onplaying = null; |
19 this.pause(); | 19 this.pause(); |
20 this.currentTime = 0; | 20 this.currentTime = 0; |
21 setTimeout(function(video){ | 21 setTimeout(function(video){ |
22 video.controls = false; | 22 video.controls = false; |
23 }, 100, this); | 23 }, 100, this); |
24 setTimeout(takeScreenshot, 200);"> | 24 takeScreenshotDelayed(1000);"> |
25 <source src="/media/white.webm" type="video/webm"> | 25 <source src="/media/white.webm" type="video/webm"> |
26 <source src="/media/white.mp4" type="video/mp4"> | 26 <source src="/media/white.mp4" type="video/mp4"> |
27 <track src=support/foo.vtt> | 27 <track src=support/foo.vtt> |
| 28 <script> |
| 29 document.getElementsByTagName('track')[0].track.mode = 'showing'; |
| 30 </script> |
28 </video> | 31 </video> |
OLD | NEW |