OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Reference for WebVTT rendering, cue position after navigation</title> | 2 <title>Reference for WebVTT rendering, cue position after navigation</title> |
3 <style> | 3 <style> |
4 .video { | 4 .video { |
5 display: inline-block; | 5 display: inline-block; |
6 outline: solid; | 6 outline: solid; |
7 width: 320px; | 7 width: 320px; |
8 height: 240px; | 8 height: 240px; |
9 position: relative | 9 position: relative; |
| 10 font-size: 50px; |
10 } | 11 } |
11 video { | 12 video { |
12 position: absolute; | 13 position: absolute; |
13 width:320px; | 14 width:320px; |
14 height:240px; | 15 height:240px; |
15 } | 16 } |
16 .cue { | 17 .cue { |
17 position: absolute; | 18 position: absolute; |
18 bottom: 50px; | 19 bottom: 50px; |
19 left: 0; | 20 left: 0; |
20 right: 0; | 21 right: 0; |
21 text-align: center | 22 text-align: center |
22 } | 23 } |
23 .cue > span { | 24 .cue > span { |
24 font-family: Ahem, sans-serif; | 25 font-family: Ahem, sans-serif; |
25 background: rgba(0,0,0,0.8); | 26 background: rgba(0,0,0,0.8); |
26 color: green; | 27 color: green; |
27 font-size: 50px; | |
28 } | 28 } |
29 </style> | 29 </style> |
30 <video controls> | 30 <video controls> |
31 <source src="/media/white.webm" type="video/webm"> | 31 <source src="/media/white.webm" type="video/webm"> |
32 <source src="/media/white.mp4" type="video/mp4"> | 32 <source src="/media/white.mp4" type="video/mp4"> |
33 </video> | 33 </video> |
34 <div class="video"><span class="cue"><span>Foo</span></span></div> | 34 <div class="video"><span class="cue"><span>Foo</span></span></div> |
OLD | NEW |