blob: d3c01e6a4d887d7a3dcf02b04bcb5b42d9916529 [file] [log] [blame]
<body style="position: relative; width: 200px; margin: 0 auto;">
<pre id="console">The body should have 0 for both offsetLeft and offsetTop.
</pre>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var console = document.getElementById("console");
console.appendChild(document.createTextNode("body.offsetParent = " + document.body.offsetParent + "\n"));
console.appendChild(document.createTextNode("body.offsetLeft = " + document.body.offsetLeft + "\n"));
console.appendChild(document.createTextNode("body.offsetTop = " + document.body.offsetTop + "\n"));
</script>