Bug 23020 - Cannot scroll to bottom of page with scroll overflow, relative position, and offset top
Summary: Cannot scroll to bottom of page with scroll overflow, relative position, and ...
Status: UNCONFIRMED
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: 2008-12-28 22:27 PST by Matt Campbell
Modified: 2008-12-28 22:33 PST (History)
0 users

See Also:


Attachments
Demonstration of the bug. Try to scroll down to "1" (one) (2.25 KB, text/html)
2008-12-28 22:33 PST, Matt Campbell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Campbell 2008-12-28 22:27:31 PST
Cannot scroll to the bottom of a page containing a long div with this style: "overflow:scroll; top:50px; position:relative;". Same issue if overflow is auto.

Everything renders correctly, but the scrollbar acts as if the top of the div is at 0px, making the bottom 50 or so px of the div unreadable. This issue is present in the nightly and Safari 3.2.1, but is not present in Firefox.

Just view this code, after replacing "[[A long page of text]]" with too much text to fit in a window:
<html>
<body>
<div style="overflow:scroll; top:50px; position:relative;">
 [[A long page of text]]<br/>
</div>
</body>
</html>
Comment 1 Matt Campbell 2008-12-28 22:33:25 PST
Created attachment 26287 [details]
Demonstration of the bug. Try to scroll down to "1" (one)