OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../fast/js/resources/js-test-pre.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
3 <style> | 3 <style> |
4 span { font-size: 16px; } | 4 span { font-size: 16px; } |
5 #control { line-height: 200%; } | 5 #control { line-height: 200%; } |
6 #calc-percent { line-height: calc(100% * 2); } | 6 #calc-percent { line-height: calc(100% * 2); } |
7 #calc-percent-pixels { line-height: calc(100% + 16px); } | 7 #calc-percent-pixels { line-height: calc(100% + 16px); } |
8 #calc-percent-ems { line-height: calc(100% + 1em); } | 8 #calc-percent-ems { line-height: calc(100% + 1em); } |
9 </style> | 9 </style> |
10 <div id="test-container"> | 10 <div id="test-container"> |
11 <span id="control">The line height of these lines should be identical</span>
<hr/> | 11 <span id="control">The line height of these lines should be identical</span>
<hr/> |
12 <span id="calc-percent">The line height of these lines should be identical</
span><hr/> | 12 <span id="calc-percent">The line height of these lines should be identical</
span><hr/> |
(...skipping 12 matching lines...) Expand all Loading... |
25 shouldEvaluateTo('getComputedStyle(document.getElementById("calc-percent"),
null).lineHeight', 'getComputedStyle(document.getElementById("control"), null).l
ineHeight'); | 25 shouldEvaluateTo('getComputedStyle(document.getElementById("calc-percent"),
null).lineHeight', 'getComputedStyle(document.getElementById("control"), null).l
ineHeight'); |
26 shouldEvaluateTo('getComputedStyle(document.getElementById("calc-percent-pix
els"), null).lineHeight', 'getComputedStyle(document.getElementById("control"),
null).lineHeight'); | 26 shouldEvaluateTo('getComputedStyle(document.getElementById("calc-percent-pix
els"), null).lineHeight', 'getComputedStyle(document.getElementById("control"),
null).lineHeight'); |
27 shouldEvaluateTo('getComputedStyle(document.getElementById("calc-percent-ems
"), null).lineHeight', 'getComputedStyle(document.getElementById("control"), nul
l).lineHeight'); | 27 shouldEvaluateTo('getComputedStyle(document.getElementById("calc-percent-ems
"), null).lineHeight', 'getComputedStyle(document.getElementById("control"), nul
l).lineHeight'); |
28 | 28 |
29 if (window.testRunner) { | 29 if (window.testRunner) { |
30 var testContainer = document.getElementById("test-container"); | 30 var testContainer = document.getElementById("test-container"); |
31 if (testContainer) | 31 if (testContainer) |
32 document.body.removeChild(testContainer); | 32 document.body.removeChild(testContainer); |
33 } | 33 } |
34 </script> | 34 </script> |
OLD | NEW |