[Webkit-unassigned] [Bug 25240] REGRESSION: document.body.scrollHeight is wrong in BackCompat mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 20 12:08:34 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=25240
erik.arvidsson at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ojan at chromium.org
------- Comment #3 from erik.arvidsson at gmail.com 2009-04-20 12:08 PDT -------
http://erik.eae.net/chrome/scrollheightbug.html
http://erik.eae.net/chrome/scrollheightbug-backcompat.html
My suggestion for getting this slightly more sane.
Step 1: In CSS1Compat mode, make scrollHeight/Width match IE, Gecko and Opera.
They all agree and when in standards mode the body should not be treated
specially.
Step 2: In BackCompat mode make documentElement.offsetHeight =
documentElement.scrollHeight = documentElement.clientHeight =
body.offsetHeight. This is what Gecko and Opera does. IE returns 0 for
clientHeight but otherwise do the same as Gecko and Opera. This also fixes the
issue where we currently see offsetHeight being smaller than clientHeight.
I got step 1 working in my client but wanted to hear other peoples input before
I continue.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list