OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <style> | 3 <style> |
4 .parent { | 4 .parent { |
5 line-height: 0px; // No spacing between the lines. | 5 line-height: 0px; // No spacing between the lines. |
6 } | 6 } |
7 .sibling { | 7 .sibling { |
8 background-color: purple; | 8 background-color: purple; |
9 display: inline-block; | 9 display: inline-block; |
10 width: 25px; | 10 width: 25px; |
11 height: 50px; | 11 height: 50px; |
12 } | 12 } |
(...skipping 18 matching lines...) Expand all Loading... |
31 // The inline should not prevent the purple block from sitting on the same l
ine in the first example. | 31 // The inline should not prevent the purple block from sitting on the same l
ine in the first example. |
32 shouldBeEqualToString("window.getComputedStyle(iframe1).width", "150px"); | 32 shouldBeEqualToString("window.getComputedStyle(iframe1).width", "150px"); |
33 shouldBeEqualToString("window.getComputedStyle(iframe1).height", "50px"); | 33 shouldBeEqualToString("window.getComputedStyle(iframe1).height", "50px"); |
34 shouldBeEqualToString("window.getComputedStyle(parent1).height", "50px"); | 34 shouldBeEqualToString("window.getComputedStyle(parent1).height", "50px"); |
35 | 35 |
36 shouldBeEqualToString("window.getComputedStyle(iframe2).width", "100px"); | 36 shouldBeEqualToString("window.getComputedStyle(iframe2).width", "100px"); |
37 shouldBeEqualToString("window.getComputedStyle(iframe2).height", "100px"); | 37 shouldBeEqualToString("window.getComputedStyle(iframe2).height", "100px"); |
38 shouldBeEqualToString("window.getComputedStyle(parent2).height", "150px"); | 38 shouldBeEqualToString("window.getComputedStyle(parent2).height", "150px"); |
39 } | 39 } |
40 </script> | 40 </script> |
OLD | NEW |