Closed Bug 116021 Opened 23 years ago Closed 23 years ago

No Support for Negative Z-Index Values

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 78087

People

(Reporter: davebug, Assigned: attinasi)

Details

The w3.org specification qualifies only that the z-index values must be 
integers, not specifically positive integers. IE6 supports negative integers 
for z-index values, but Mozilla doesn't (all divs set to negative z-index 
values have the appearance of being set to visibility:hidden).

http://www.w3.org/TR/REC-CSS2/visuren.html#z-index
Testcase?  Chances are, your divs are ending up below <body>, which has a 
non-transparent background.  Try setting "position:relative; z-index:0" on the 
body.
Bingo. It works fine now. But shouldn't we just change this bug to be "Body 
doesn't default to z-index of 0"?
Sure, but per spec the default value is in fact auto, not 0.

Duplicate of "[regression] Doesn't display position:absolute and z-index:-1"; 
all the relevant discussion is in that bug.

*** This bug has been marked as a duplicate of 78087 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.