OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <div id="tests" style="-webkit-column-count:2; height:300px; width:600px; -webki
t-column-gap:0"> | 3 <div id="tests" style="-webkit-column-count:2; -webkit-column-gap:0; column-coun
t:2; column-gap:0; column-fill:auto; height:300px; width:600px;"> |
4 <div style="height:280px"></div> | 4 <div style="height:280px"></div> |
5 <div id="f1" style="border:5px solid black; float:left"> | 5 <div id="f1" style="border:5px solid black; float:left"> |
6 <img style="display:block;width:140px;height:80px;"> | 6 <img style="display:block;width:140px;height:80px;"> |
7 </div> | 7 </div> |
8 </div> | 8 </div> |
9 <div id="result"></div> | 9 <div id="result"></div> |
10 <script> | 10 <script> |
11 function floatOffset(float) | 11 function floatOffset(float) |
12 { | 12 { |
13 var parentRect = document.getElementById('tests').getBoundingClientRect(
); | 13 var parentRect = document.getElementById('tests').getBoundingClientRect(
); |
(...skipping 21 matching lines...) Expand all Loading... |
35 document.getElementById("tests").style.display = "none"; | 35 document.getElementById("tests").style.display = "none"; |
36 } | 36 } |
37 | 37 |
38 document.getElementById("result").innerText = failures ? "FAIL: " + failures
+ " cases failed" : "PASS"; | 38 document.getElementById("result").innerText = failures ? "FAIL: " + failures
+ " cases failed" : "PASS"; |
39 </script> | 39 </script> |
40 | 40 |
41 | 41 |
42 | 42 |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |