Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / fast / html / body-offset-properties.html
blobb4ae0184b422ffa71e33712fce08237af113e3be
1 <body style="position: relative; width: 200px; margin: 0 auto;">
2 <pre id="console">The body should have 0 for both offsetLeft and offsetTop.
4 </pre>
5 <script>
6 if (window.layoutTestController)
7 layoutTestController.dumpAsText();
8 var console = document.getElementById("console");
9 console.appendChild(document.createTextNode("body.offsetParent = " + document.body.offsetParent + "\n"));
10 console.appendChild(document.createTextNode("body.offsetLeft = " + document.body.offsetLeft + "\n"));
11 console.appendChild(document.createTextNode("body.offsetTop = " + document.body.offsetTop + "\n"));
12 </script>