OLD | NEW |
1 <head> | 1 <head> |
2 <style> | 2 <style> |
| 3 html, body { |
| 4 margin: 5px; |
| 5 } |
3 div { | 6 div { |
4 height: 9999px; | 7 height: 10000px; |
5 width: 9999px; | 8 width: 10000px; |
6 } | 9 } |
7 </style> | 10 </style> |
8 <script> | 11 <script> |
9 function scroll() { | 12 function scroll() { |
10 document.body.scrollTop = 5000; | 13 document.body.scrollTop = 5000; |
11 document.body.scrollLeft = 4000; | 14 document.body.scrollLeft = 4000; |
12 | 15 |
13 // The calls below should not take effect, given | 16 // The calls below should not take effect, given |
14 // that setting scrollTop/Left on the root node | 17 // that setting scrollTop/Left on the root node |
15 // is no-op in quirks-mode. | 18 // is no-op in quirks-mode. |
16 document.documentElement.scrollTop = 1; | 19 document.documentElement.scrollTop = 1; |
17 document.documentElement.scrollLeft = 1; | 20 document.documentElement.scrollLeft = 1; |
18 | 21 |
19 parent.verifyTest() | 22 parent.verifyTest() |
20 } | 23 } |
21 </script> | 24 </script> |
22 </head> | 25 </head> |
23 <body onload="scroll()"> | 26 <body onload="scroll()"> |
24 <div></div> | 27 <div></div> |
25 </body> | 28 </body> |
OLD | NEW |