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)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: fabian, Assigned: jst)
References
()
Details
(Keywords: css2, testcase)
Attachments
(1 file)
|
1.44 KB,
text/html
|
Details |
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
| Reporter | ||
Comment 1•24 years ago
|
||
Updated•24 years ago
|
Comment 2•24 years ago
|
||
This works for me with build 20011215 Win2000.
Comment 3•24 years ago
|
||
WFM on Linux, built from last night's CVS.
| Reporter | ||
Comment 4•24 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•