OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Test that line height of cue element isn't overridden by author CSS.</tit
le> | 2 <title>Test that line height of cue element isn't overridden by author CSS.</tit
le> |
3 <script src="../media-file.js"></script> | 3 <script src="../media-file.js"></script> |
4 <script src="../media-controls.js"></script> | 4 <script src="../media-controls.js"></script> |
5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
7 <style> | 7 <style> |
8 body { line-height: 108px; } | 8 body { line-height: 108px; } |
9 </style> | 9 </style> |
10 <video> | 10 <video> |
11 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="captions"
default> | 11 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="captions"
default> |
12 </video> | 12 </video> |
13 <script> | 13 <script> |
14 async_test(function(t) { | 14 async_test(function(t) { |
15 var video = document.querySelector('video'); | 15 var video = document.querySelector('video'); |
16 video.src = findMediaFile('video', '../content/test'); | 16 video.src = findMediaFile('video', '../content/test'); |
17 | 17 |
18 video.onseeked = t.step_func_done(function() { | 18 video.onseeked = t.step_func_done(function() { |
19 var multiLineCueDisplayElement = textTrackDisplayElement(video, 'display
', 0); | 19 var multiLineCueDisplayElement = textTrackDisplayElement(video); |
20 assert_equals(getComputedStyle(multiLineCueDisplayElement).lineHeight, '
normal'); | 20 assert_equals(getComputedStyle(multiLineCueDisplayElement).lineHeight, '
normal'); |
21 }); | 21 }); |
22 | 22 |
23 video.currentTime = 1.25; | 23 video.currentTime = 1.25; |
24 }); | 24 }); |
25 </script> | 25 </script> |
OLD | NEW |