W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2016

[csswg-drafts] [cssom-view] No browsers honor "the HTML body element" in `offsetTop`

From: Corey Farwell via GitHub <sysbot+gh@w3.org>
Date: Mon, 10 Oct 2016 15:26:06 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-182043744-1476113164-sysbot+gh@w3.org>
frewsxcv has just created a new issue for 

== [cssom-view] No browsers honor "the HTML body element" in 
`offsetTop` ==

> If the element is the HTML body element or does not have any 
associated CSS layout box return zero and terminate this algorithm.

<body id=body></body>
var body = document.getElementById('body');
var innerBody = document.createElement('body');

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 
Received 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