OLD | NEW |
1 <script src="../../../resources/js-test.js"></script> | 1 <script src="../../../resources/js-test.js"></script> |
2 <style> | 2 <style> |
3 body { | 3 body { |
4 font: 16px Ahem; | 4 font: 16px Ahem; |
5 } | 5 } |
6 | 6 |
7 .bbox { | 7 .bbox { |
8 position:absolute; | 8 position:absolute; |
9 outline: 5px solid rgba(255, 0, 0, .75); | 9 outline: 5px solid rgba(255, 0, 0, .75); |
10 z-index: -1; | 10 z-index: -1; |
11 } | 11 } |
12 | 12 |
13 .box { | 13 .box { |
14 width: 400px; | 14 width: 400px; |
15 line-height: 40px; | 15 line-height: 40px; |
16 } | 16 } |
17 | 17 |
18 .outer { | 18 .outer { |
19 outline: 2px solid green; | 19 outline: 2px solid green; |
20 } | 20 } |
21 | 21 |
22 .inner { | 22 .inner { |
23 display: inline-block; | 23 display: inline-block; |
24 width: 40px; | 24 width: 40px; |
25 height: 20px; | 25 height: 20px; |
26 outline: 2px solid blue; | 26 outline: 2px solid blue; |
27 } | 27 } |
28 | 28 |
29 #test5 { | 29 #test5 { |
30 -webkit-transform: translate(50px, 100px) rotate(50deg); | 30 transform: translate(50px, 100px) rotate(50deg); |
31 } | 31 } |
32 | 32 |
33 #console { | 33 #console { |
34 position:absolute; | 34 position:absolute; |
35 left: 500px; | 35 left: 500px; |
36 } | 36 } |
37 | 37 |
38 #testArea { | 38 #testArea { |
39 width: 300px; | 39 width: 300px; |
40 } | 40 } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 debug("Test 6") | 160 debug("Test 6") |
161 var range6 = document.createRange(); | 161 var range6 = document.createRange(); |
162 rect = range6.getBoundingClientRect() | 162 rect = range6.getBoundingClientRect() |
163 testClientRect(rect, expectedResults[6 - 1]); | 163 testClientRect(rect, expectedResults[6 - 1]); |
164 | 164 |
165 if (window.testRunner) { | 165 if (window.testRunner) { |
166 var area = document.getElementById('testArea'); | 166 var area = document.getElementById('testArea'); |
167 area.parentNode.removeChild(area); | 167 area.parentNode.removeChild(area); |
168 } | 168 } |
169 </script> | 169 </script> |
OLD | NEW |