OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Document::nodesFromRect test - bug 40197</title> | 4 <title>Document::nodesFromRect test - bug 40197</title> |
5 <style type="text/css"> @import "resources/nodesFromRect.css"; </style> | 5 <style type="text/css"> @import "resources/nodesFromRect.css"; </style> |
6 <script src="../../js/resources/js-test-pre.js"></script> | 6 <script src="../../../resources/js-test.js"></script> |
7 <script src="resources/nodesFromRect.js"></script> | 7 <script src="resources/nodesFromRect.js"></script> |
8 <script type="application/javascript"> | 8 <script type="application/javascript"> |
9 function runTest() | 9 function runTest() |
10 { | 10 { |
11 var e = {}; | 11 var e = {}; |
12 | 12 |
13 // Set up shortcut access to elements | 13 // Set up shortcut access to elements |
14 e['html'] = document.getElementsByTagName("html")[0]; | 14 e['html'] = document.getElementsByTagName("html")[0]; |
15 ['h1', 'd1', 'd2', 'p1', 'p2', 'p3', 'p4', 'p5', 'span', 'body'].forEach(f
unction(a) { | 15 ['h1', 'd1', 'd2', 'p1', 'p2', 'p3', 'p4', 'p5', 'span', 'body'].forEach(f
unction(a) { |
16 e[a] = document.getElementById(a); | 16 e[a] = document.getElementById(a); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 <!-- fixed position --> | 94 <!-- fixed position --> |
95 <p id="p4" style="position: fixed; top: 30px; left: 150px; height: 50px; backg
round-color: blue;"></p> | 95 <p id="p4" style="position: fixed; top: 30px; left: 150px; height: 50px; backg
round-color: blue;"></p> |
96 | 96 |
97 <!-- relative position --> | 97 <!-- relative position --> |
98 <p id="p5" style="position:relative; top: -100px; left: 30px; margin-bottom: -
70px; background-color: green"></p> | 98 <p id="p5" style="position:relative; top: -100px; left: 30px; margin-bottom: -
70px; background-color: green"></p> |
99 | 99 |
100 <span id="console"></span> | 100 <span id="console"></span> |
101 </body> | 101 </body> |
102 </html> | 102 </html> |
103 | 103 |
OLD | NEW |