Bug 25314 - In quirks mode, body.clientHeight > body.offsetHeight when you put padding on the HTML element
Summary: In quirks mode, body.clientHeight > body.offsetHeight when you put padding on...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 16:06 PDT by Ojan Vafai
Modified: 2022-07-26 19:42 PDT (History)
9 users (show)

See Also:


Attachments
Simple testcase (1005 bytes, text/html)
2009-04-21 16:07 PDT, Ojan Vafai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 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.
Comment 1 Ojan Vafai 2009-04-21 16:07:39 PDT
Created attachment 29666 [details]
Simple testcase
Comment 2 gur.trio 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.
Comment 3 Ahmad Saleem 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!