Closed Bug 242663 Opened 21 years ago Closed 21 years ago

negative z-index does results in incorrect display

Categories

(Core :: Web Painting, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 78087

People

(Reporter: bugzilla.mozilla, Assigned: roc)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 Galeon/1.3.14 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 Galeon/1.3.14 Mozilla seems to go nut if I use negative z-index values. In the example above the text "Content for z-index: -1" is not displayed at all, while it works if I use positive values of the index. Reproducible: Always Steps to Reproduce: 1. 2. 3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- #test1 { z-index:-1; position:absolute; left:200px; background-color:#CCCCCC; } #test2 { z-index: 0; position:absolute; } --> </style> </head> <body> <div id="test1">Content for z-index: -1;</div> <div id="test2">Content for z-index: 0;</div> </body> </html>
-> INVALID <http://www.w3.org/TR/CSS21/visuren.html#z-index> > The root element forms the root stacking context. (In simple words: you position it behind the root element.)
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
This isn't invalid. The root element is transparent so it shouldn't matter that it is behind it. But I think this is a dupe.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Hardware: PC → All
Whiteboard: DUPEME
Ah, you are right. *** This bug has been marked as a duplicate of 78087 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.