frewsxcv has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom-view] No browsers honor "the HTML body element" in `offsetTop` == https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsettop > If the element is the HTML body element or does not have any associated CSS layout box return zero and terminate this algorithm. ```html <html> <body id=body></body> <script> var body = document.getElementById('body'); var innerBody = document.createElement('body'); body.appendChild(innerBody); window.alert(innerBody.offsetTop); window.alert(innerBody.offsetLeft); </script> </html> ``` At the time of writing, Safari, Chrome, and Firefox all output 0 and 0 for this. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/584 using your GitHub accountReceived on Monday, 10 October 2016 15:26:33 UTC
This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:04 UTC