OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Reference for WebVTT rendering, line:-2, size:50%, wrapped cue should gro
w upwards</title> | 2 <title>Reference for WebVTT rendering, line:-2, size:50%, wrapped cue should gro
w upwards</title> |
3 <style> | 3 <style> |
4 html { overflow:hidden } | 4 html { overflow:hidden } |
5 body { margin:0 } | 5 body { margin:0 } |
6 .video { | 6 .video { |
7 display: inline-block; | 7 display: inline-block; |
8 width: 1280px; | 8 width: 320px; |
9 height: 720px; | 9 height: 180px; |
10 position: relative | 10 position: relative; |
| 11 font-size: 9px; |
11 } | 12 } |
12 .cue { | 13 .cue { |
13 position: absolute; | 14 position: absolute; |
14 bottom: 36px; | 15 bottom: 9px; |
15 left: 320px; | 16 left: 80px; |
16 right: 0; | 17 right: 0; |
17 width: 640px; | 18 width: 160px; |
18 text-align: center | 19 text-align: center |
19 } | 20 } |
20 .cue > span { | 21 .cue > span { |
21 font-family: Ahem, sans-serif; | 22 font-family: Ahem, sans-serif; |
22 background: rgba(0,0,0,0.8); | 23 background: rgba(0,0,0,0.8); |
23 color: green; | 24 color: green; |
24 font-size: 36px; | |
25 } | 25 } |
26 </style> | 26 </style> |
27 <div class="video"><span class="cue"><span>This is a test subtitle that will lin
e break</span></span></div> | 27 <div class="video"><span class="cue"><span>This is a test subtitle that will lin
e break</span></span></div> |
OLD | NEW |