RESOLVED CONFIGURATION CHANGED 25314
In quirks mode, body.clientHeight > body.offsetHeight when you put padding on the HTML element
https://bugs.webkit.org/show_bug.cgi?id=25314
Summary In quirks mode, body.clientHeight > body.offsetHeight when you put padding on...
Ojan Vafai
Reported 2009-04-21 16:06:21 PDT
Summary: In quirks mode, body.clientHeight > body.offsetHeight when you put padding on the HTML element It's not clear to me what the right thing to do here (whether they should be equal or have offsetHeight>clientHeight), but it's clear that the current behavior is wrong.
Attachments
Simple testcase (1005 bytes, text/html)
2009-04-21 16:07 PDT, Ojan Vafai
no flags
Ojan Vafai
Comment 1 2009-04-21 16:07:39 PDT
Created attachment 29666 [details] Simple testcase
gur.trio
Comment 2 2013-09-11 00:13:12 PDT
(In reply to comment #0) > Summary: In quirks mode, body.clientHeight > body.offsetHeight when you put padding on the HTML element > > It's not clear to me what the right thing to do here (whether they should be equal or have offsetHeight>clientHeight), but it's clear that the current behavior is wrong. behaviour seems correct http://dev.w3.org/csswg/cssom-view/#dom-htmlelement-offsetheight http://dev.w3.org/csswg/cssom-view/#dom-element-clientheight ClientHeight : viewport height Offsetheight : renderer's height.
Ahmad Saleem
Comment 3 2022-07-26 14:12:55 PDT
In all browsers (Chrome Canary 106, Firefox Nightly 104 and Safari 15.6 on macOS 12.5), body.clientHeight is great than body.offsetHeight using attached test case. I am not clear on web-spec or expected behaviour but since all browsers are aligned, I think we can mark this as "RESOLVED CONFIGURATION CHANGED" or "RESOLVED WONTFIX". Thanks!
Note You need to log in before you can comment on or make changes to this bug.