Closed Bug 115608 Opened 24 years ago Closed 24 years ago

Setting display={block, none} on children of an overflow:auto element hides them all

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: fabian, Assigned: jst)

References

()

Details

(Keywords: css2, testcase)

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6) Gecko/20011120 BuildID: 2001112009 We have a <div> element with overflow:auto. This div element has other div elements as children. They are initially set to display:none. Dynamically setting style.display="block" on one of the child div elements works fine. However when setting style.display="none" on the same child div element and setting style.display="block" on another child div element, all of them disappear. Please see the attached testcase. It might be a style system bug, but since it apparently happens only when doing it dynamically, I'll file it in DOM Style. Reproducible: Always Steps to Reproduce: 1. Open attached testcase. 2. Pick "first" in the dropdown menu. The "first" div appears at the top. 3. Pick "second" in the dropdown menu. Actual Results: All div's are hidden. Expected Results: The "second" div appears and the "first" div is hidden. Tested on NS6.0, NS6.2, Mozilla 0.9.6 on windows. The problem disappears if the container div has overflow:hidden instead of auto. Apparently the problem appears also if it has overflow:scroll. Setting severity to normal since there is a workaround. There is another testcase just a little different that seems to work fine at http://guisset.tripod.com/mozilla/testcase/ppkbug.html
Keywords: css2, testcase
This works for me with build 20011215 Win2000.
WFM on Linux, built from last night's CVS.
Nevermind it works on my 2001121403 nightly as well. Will teach me for not testing with a nightly :-( Marking WORKSFORME, thanks for those who tested.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Verifying WFM.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: