WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
16431
Changing a nested element from position:fixed to position:absolute messes up body.scrollHeight
https://bugs.webkit.org/show_bug.cgi?id=16431
Summary
Changing a nested element from position:fixed to position:absolute messes up ...
Khoo Yit Phang
Reported
2007-12-13 21:18:39 PST
In a document that looks like the following: <div style="height: 100px; position:relative; overflow: auto"> <div style="position:fixed"/> </div> When the inner div is changed to be position:absolute, and offset to something larger than the size of the document (e.g. top:2000px), the document height will be extended to wherever the div was offset to, and the window scrollbars will appear if not already. It is as if the new document height was calculated without considering overflow: auto in the outer div. The same problem occurs for overflow: none or overflow: scroll too.
Attachments
Test case.
(1.33 KB, application/xhtml+xml)
2007-12-13 21:19 PST
,
Khoo Yit Phang
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Khoo Yit Phang
Comment 1
2007-12-13 21:19:13 PST
Created
attachment 17887
[details]
Test case.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug