See: See http://www.w3.org/TR/CSS21/visuren.html#z-index
This has a pretty explicit description of what should happen, no? See the list of stacking levels per stacking context (7 in all). Analysis of your testcases in terms of those stacking levels follows.
div_green_position_static.xhtml: Moz: green div behind yellow div Op7: green div behind yellow div
The green div is in stacking level 3, the yellow div is in stacking level 4. Both browsers get it right.
div_green_position_relative.xhtml: Moz: green div before yellow div----->different Op7: green div behind yellow div----->different
The green div is in stacking level 5, the yellow div is in stacking level 4. Mozilla gets it right.
div_green_position_absolute.xhtml: Moz: green div before yellow div Op7: green div before yellow div
This is identical to div_green_position_relative.xhtml for purposes of this testcase. Both browsers get it right.
div_green_position_fixed.xhtml: Moz: green div before yellow div Op7: green div before yellow div
So is this. Both browsers get it right.
Actually from the description of css2.1 I would think (wrongly perhaps?) that every time the green div should be behind the yellow div.
What gave you that idea, if I may ask? Perhaps the spec needs clarification here?
-Boris _______________________________________________ mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
