Closed
Bug 242663
Opened 21 years ago
Closed 21 years ago
negative z-index does results in incorrect display
Categories
(Core :: Web Painting, defect)
Core
Web Painting
Tracking
()
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>
Comment 1•21 years ago
|
||
-> 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
Comment 2•21 years ago
|
||
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 → ---
Updated•21 years ago
|
Hardware: PC → All
Whiteboard: DUPEME
Comment 3•21 years ago
|
||
Ah, you are right.
*** This bug has been marked as a duplicate of 78087 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Updated•7 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•