Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Text track cue layout after controls are added (reference)</title> | 2 <title>Text track cue layout after controls are added (reference)</title> |
| 3 <style> | 3 <style> |
| 4 ::cue { | 4 ::cue { |
| 5 font-size: 50px; | 5 font-size: 50px; |
| 6 } | 6 } |
| 7 </style> | 7 </style> |
| 8 <body> | |
|
philipj_slow
2015/07/08 10:31:51
I don't think this change is needed to pass the te
liberato (no reviews please)
2015/07/09 12:10:53
Done.
| |
| 8 <video controls style="border:1px solid gray"> | 9 <video controls style="border:1px solid gray"> |
| 9 <source src="opera/track/webvtt/rendering/reftest/media/white.webm" type="vide o/webm"> | 10 <source src="opera/track/webvtt/rendering/reftest/media/white.webm" type="vide o/webm"> |
| 10 <source src="opera/track/webvtt/rendering/reftest/media/white.mp4" type="video /mp4"> | 11 <source src="opera/track/webvtt/rendering/reftest/media/white.mp4" type="video /mp4"> |
| 11 </video> | 12 </video> |
| 12 <script> | 13 <script> |
| 13 // Add a single cue at line -2, where it would be if there were controls visible | 14 // Add a single cue at line -2, where it would be if there were controls visible |
| 14 // at the bottom. (This assumes that those controls are less than 50px high.) | 15 // at the bottom. (This assumes that those controls are less than 50px high.) |
| 15 // cue at line -1. | 16 // cue at line -1. |
| 16 var video = document.querySelector("video"); | 17 var video = document.querySelector("video"); |
| 17 var track = video.addTextTrack("captions"); | 18 var track = video.addTextTrack("captions"); |
| 18 var cue = new VTTCue(0, 1, "text"); | 19 var cue = new VTTCue(0, 1, "text"); |
| 19 cue.line = -2; | 20 cue.line = -2; |
| 20 track.addCue(cue); | 21 track.addCue(cue); |
| 21 track.mode = "showing"; | 22 track.mode = "showing"; |
| 22 </script> | 23 </script> |
| 24 </body> | |
| 25 </html> | |
| OLD | NEW |