Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(976)

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-on-resize.html

Issue 1820773002: getComputedStyle() should return used value for 'line-height' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 5
6 <style type="text/css"> 6 <style type="text/css">
7 body { 7 body {
8 line-height: 108px; 8 line-height: 108px;
9 } 9 }
10 </style> 10 </style>
11 <script src=../media-file.js></script> 11 <script src=../media-file.js></script>
12 <script src=../media-controls.js></script> 12 <script src=../media-controls.js></script>
13 13
14 <script> 14 <script>
15 var multiLineCueDisplayElement; 15 var multiLineCueDisplayElement;
16 16
17 function testCueHeight() 17 function testCueHeight()
18 { 18 {
19 if (!window.internals) { 19 if (!window.internals) {
20 failTest(); 20 failTest();
21 return; 21 return;
22 } 22 }
23 23
24 var cueContainerElement = textTrackDisplayElement(video); 24 var cueContainerElement = textTrackDisplayElement(video);
25 multiLineCueDisplayElement = textTrackDisplayElement(video, 'display ', 0); 25 multiLineCueDisplayElement = textTrackDisplayElement(video, 'display ', 0);
26 26
27 consoleWrite("<br>** Line height of the cue element should be 'norma l' **"); 27 consoleWrite("<br>** Line height of the cue element should be 'norma l' **");
28 testExpected("getComputedStyle(multiLineCueDisplayElement).lineHeigh t", "normal"); 28 testExpected("getComputedStyle(multiLineCueDisplayElement).lineHeigh t", "15px");
29 29
30 endTest(); 30 endTest();
31 } 31 }
32 32
33 function loaded() 33 function loaded()
34 { 34 {
35 consoleWrite("Line height isn't overriden by other CSS values in the file."); 35 consoleWrite("Line height isn't overriden by other CSS values in the file.");
36 findMediaElement(); 36 findMediaElement();
37 37
38 testTrack = document.querySelector('track'); 38 testTrack = document.querySelector('track');
(...skipping 10 matching lines...) Expand all
49 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 49 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
50 (Please avoid writing new tests using video-test.js) --> 50 (Please avoid writing new tests using video-test.js) -->
51 <script src=../video-test.js></script> 51 <script src=../video-test.js></script>
52 </head> 52 </head>
53 <body onload="loaded()"> 53 <body onload="loaded()">
54 <video controls> 54 <video controls>
55 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="ca ptions" default> 55 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="ca ptions" default>
56 </video> 56 </video>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698