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