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