Open Bug 283399 Opened 20 years ago Updated 2 years ago

inner scrolling div causes elements outside the div to scroll

Categories

(Core :: Web Painting, defect)

x86
All
defect

Tracking

()

People

(Reporter: ceubanks, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Test Case:
<html>
    <body>
        <p>his is some random text which will get mangled</p>
        <p>this is some more random text which will get mangled </p>
 		<div style="width:200px;height:18px;overflow:hidden;border:1px solid red;">
		<div id="fakeSB3"
		
style="position:relative;top:-74px;width:200px;height:90px;overflow:scroll;line-height:0;">
		<div id="thumb3" style="width:800px;height:0px;"></div>
		</div>
		</div>
    </body>
</html>


Reproducible: Always

Steps to Reproduce:
1. load the test case
2. scroll the scrollbar

Actual Results:  
see that the text above the scrollbar is scrolling


Expected Results:  
scrollbar should scroll, text should not be affected

Apologies if this is a dup.  I looked at the several similar sounding bugs that
may have the same root cause but I didn't see a nice clean test case.  So I
filed this.  
Anywho, the page is attempting to fake out a native scrollbar.  This is a pretty
common technique that works for IE but has problems in gecko.  Ideally I can
create a scrollbar of arbitrary size that I can catch events on but which does
not affect any surrounding elements in the page (unless I write code to get that
effect).  In the test case I have made the hidden scrolling div much taller than
it would normally be to make the side effect more obvious.
I can reproduce the problem in Firefox 20050223 trunk but not in Mozilla
(GTK1 or GTK2) trunk, all on Linux.
Assignee: nobody → roc
Status: UNCONFIRMED → NEW
Component: Layout: Block and Inline → Layout: View Rendering
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
QA Contact: layout.block-and-inline → ian
Hmm.. Worksforme in a debug trunk firefox (GTK2) from about a week ago, too...
So something weird is up...
not seeing anything 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2008020404 Minefield/3.0b3pre
QA Contact: ian → layout.view-rendering
Component: Layout: View Rendering → Layout: Web Painting
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: