1 <body style="position: relative; width: 200px; margin: 0 auto;">
2 <pre id="console">The body should have 0 for both offsetLeft and offsetTop.
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"));