OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Reference for WebVTT rendering, underline object, ::cue(u), white-space:
pre (cue that wraps)</title> | 2 <title>Reference for WebVTT rendering, underline object, ::cue(u), white-space:
pre (cue that wraps)</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 font-size: 36px; | 10 font-size: 9px; |
11 position: relative | 11 position: relative |
12 } | 12 } |
13 .cue { | 13 .cue { |
14 position: absolute; | 14 position: absolute; |
15 bottom: 0; | 15 bottom: 0; |
16 left: 25%; | 16 left: 25%; |
17 right: 0; | 17 right: 0; |
18 width: 50%; | 18 width: 50%; |
19 text-align: center; | 19 text-align: center; |
20 } | 20 } |
21 .cue > span { | 21 .cue > span { |
22 font-family: sans-serif; | 22 font-family: sans-serif; |
23 background: rgba(0,0,0,0.8); | 23 background: rgba(0,0,0,0.8); |
24 color: white; | 24 color: white; |
25 text-decoration: underline; | 25 text-decoration: underline; |
26 white-space: pre | 26 white-space: pre |
27 } | 27 } |
28 </style> | 28 </style> |
29 <div class="video"><span class="cue"><span>This is a test subtitle that most <br
>likely will span over several <br>rows since it's a pretty long cue <br
>with a lot of text.</span></span></div> | 29 <div class="video"><span class="cue"><span>This is a test subtitle that most <br
>likely will span over several <br>rows since it's a pretty long cue <br
>with a lot of text.</span></span></div> |
OLD | NEW |