Closed Bug 363728 Opened 18 years ago Closed 16 years ago

overflow: auto overdraws an absolute-positioned DIV

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
mozilla1.9.2a1

People

(Reporter: pgeiller, Assigned: crazy-daniel)

Details

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

I have 2 divs on a page, each taking 50% height (set via Javascript). Each div displays more information than 50% page height and has overflow: auto enabled. The top DIV has a control acting like a combo box, using another DIV with position: absolute. This combo-DIV is overdrawn by the bottom DIV.

I get the same results on Mac, Linux, Windows.

Reproducible: Always
Attached file Test case
Based on the test case, this is working correctly in my trunk build.
We have the same problem with div that uses overflow:hidden and <textarea/>
Please see out test case.
Attached file Another Test case
http://jira.jboss.com/jira/browse/RF-1245?page=all

Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
Buggy in Fx2, but works in Firefox 3 and higher.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
In test 1 we look wether the word FAIL shines through the absPos element. in the reference the word simply isn't there.

Test 2 looks wether the absPos element covers both elements below. This doesn't happen in Fx2 only if overflow is set.
Attachment #361052 - Flags: superreview?(dbaron)
Attachment #361052 - Flags: review?(dbaron)
Comment on attachment 361052 [details] [diff] [review]
reftests
[Checkin: Comment 8]

r+sr=dbaron
Attachment #361052 - Flags: superreview?(dbaron)
Attachment #361052 - Flags: superreview+
Attachment #361052 - Flags: review?(dbaron)
Attachment #361052 - Flags: review+
Flags: in-testsuite?
Keywords: checkin-needed
Comment on attachment 361052 [details] [diff] [review]
reftests
[Checkin: Comment 8]


http://hg.mozilla.org/mozilla-central/rev/908e140c3606
Attachment #361052 - Attachment description: reftests → reftests [Checkin: Comment 8]
Assignee: nobody → crazy-daniel
Flags: in-testsuite? → in-testsuite+
Keywords: checkin-needed
Target Milestone: --- → mozilla1.9.2a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: