-<html>\r
- <body onload="runTest()">\r
- Test passes if it does not crash.\r
- <div style="width: 15px;">\r
- <script>\r
- if (window.testRunner)\r
- testRunner.dumpAsText();\r
-\r
- function runTest()\r
- {\r
- document.body.offsetTop;\r
- var container = document.getElementById('panel');\r
- container.style.position = 'relative';\r
- document.getElementById('test1').style.position = 'absolute';\r
- document.getElementById('test2').style.position = 'absolute';\r
- document.body.offsetTop;\r
- \r
- container.style.height = '1px';\r
- document.getElementById('test1').style.display = 'none';\r
- }\r
- </script>\r
- <div id="panel">\r
- <div id="test1">\r
- <img style="float: left" height="1px">\r
- </div>\r
- <div id="test2">\r
- <a><p>P A S S</p>\r
- </div>\r
- </div>\r
- </div>\r
- </body>\r
-</html>
\ No newline at end of file
+<html>
+ <body onload="runTest()">
+ Test passes if it does not crash.
+ <div style="width: 15px;">
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ function runTest()
+ {
+ document.body.offsetTop;
+ var container = document.getElementById('panel');
+ container.style.position = 'relative';
+ document.getElementById('test1').style.position = 'absolute';
+ document.getElementById('test2').style.position = 'absolute';
+ document.body.offsetTop;
+
+ container.style.height = '1px';
+ document.getElementById('test1').style.display = 'none';
+ }
+ </script>
+ <div id="panel">
+ <div id="test1">
+ <img style="float: left" height="1px">
+ </div>
+ <div id="test2">
+ <a><p>P A S S</p>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>