Closed Bug 198257 Opened 23 years ago Closed 22 years ago

body.clientHeight is incorrect when overflow is auto.

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: maksim, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 reported value for clientHeight is incorrect ( basically equal to size of biggest element inside a body ) when style overflow:auto see example: 2 files in zip: html-auto.htm html-def.htm see value in status bar for body and inner div. funny thing is, it draws correctly, fill all client area. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Attached file overflow is auto —
Attached file default —
Attachment #117747 - Attachment mime type: text/plain → text/html
Actually, if you put a border on tbe <body> you will see that it draws correctly and does _NOT_ fill the client area in both cases.... This is a duplicate.
Whiteboard: DUPEME
To Boris Zbarsky Duplicate of what, bug number please.
This might be bug 62536.
Keywords: testcase
Forget it. Looking for the original is not worth it. The point is that if the body itself is not scrollable and in quirks mode only we map the body's clientHeight/scrollHeight/etc to the viewport for IE compat. If the body is scrollable, then we actually use the properties of the body itself.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: