Closed Bug 273923 Opened 20 years ago Closed 20 years ago

div with overflow and iframe have high z-index for mouseover event but it correct z-index when displaying with right z-index

Categories

(Firefox :: General, defect)

defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: nickwang, Assigned: bugzilla)

References

()

Details

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

In the page http://greywolfdesign.com/tmp/suckerfish.htm, move the mouse point
to the horizontal menu bar will pull down sub menus cover a div, a div with
overflow and a iframe. However, mouse cannot move to the pulldown menu on top of
iframe and overflow div.

Reproducible: Always
Steps to Reproduce:
1. Go to http://greywolfdesign.com/tmp/suckerfish.htm
2. move mouse to the "Species" or "Links" menu item.
3. move mouse down the pull down menu.

Actual Results:  
The pull down menu should keep displaying

Expected Results:  
n/a

IE works.
Summary: div with overflow and iframe have high z-index for mouseover event but it correct z-index when displaying with right z-index → div with overflow and iframe have high z-index for mouseover event but it correct z-index when displaying with right z-index
That's a nice testcase, thanks!
I think this bug is already fixed, somehow. I can't see it anymore in current
trunk build (I can see the bug in Mozilla1.7).
Reporter, you can try it yourself with a trunk build if you like:
http://ftp.scarlet.be/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-1.0+.en-US.win32.zip
I found a workaround of the problem in Firefox 1.0 (Firefox 1.0+ seems already
fixed the bug):

To hide/unhide the pulldown menu, instead of set the display:none/display:block,
use left:-999em/left:auto. 

And this will workaround the problem. Looks change display:none/block cause the
problem. 
(In reply to comment #2)
> I found a workaround of the problem in Firefox 1.0 (Firefox 1.0+ seems already
> fixed the bug):

Actually, I'm using Firefox 1.0/windows and the bug still affects me. However, I
just downloaded the nightly build of Mozilla and it's fixed there.
(In reply to comment #2)

I can confirm this bug.

> I found a workaround of the problem in Firefox 1.0 (Firefox 1.0+ seems already
> fixed the bug):

I am using Firefox 1.0.1 on GNU/Linux and the test fails for me as well. Found
this bug when trying to build such a page myself.

> To hide/unhide the pulldown menu, instead of set the display:none/display:block,
> use left:-999em/left:auto.

This is plain ugly and should not be considered a fix.

> 
> And this will workaround the problem. Looks change display:none/block cause the
> problem. 

Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.