Closed Bug 1790 Opened 26 years ago Closed 26 years ago

Z-index layering incorrect

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
All
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: coonsta, Assigned: peterl-retired)

References

()

Details

z-index layering is backwards... an element of z-index 20, for example, is
rendered underneath an element of z-index 10. The URL shows the problem in
action. I'm sending this from IE 5.0b2, but it is the nightly build of 4 Dec 98
that is demonstrating the problem.

(Why am I sending this from IE? Because Mozilla keeps crashing on the Bugzilla
reporting page, just before the password verification, but that's another
story, no doubt...)
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
OS: Windows 95 → All
QA Contact: 4110
Summary: z-index layering is backwards. → Z-index layering incorrect
Using 2/4 build:

The URL previous listed, http://dominic.liquid3.com.au/bug.html, is an invalid
address so I created a new test located at:

http://slip/projects/marvin/bugs/bug_1790.html

Expected result: Layering should be in this order: yellow box (bottom), red box,
lime box.

Actual result: layering is incorrect (across platforms).

Reopening bug, changing OS to 'All', and reassigning QA contact to
chrisd@netscape.com
Resolution: FIXED → ---
the test needs to be tweaked a bit i think. the last div has a s-index, not a
z-index.
Sorry about that. Test revised and I see same bug behavior.
Assignee: michaelp → troy
Status: REOPENED → NEW
Component: Compositor → Layout
in the view tree, all the z indices wind up as zero. looking in the stack,
CreateViewFromFrame() never picks up that thre is some absolute positioning so
it never picks up the z-index from the style system. i'm not sure what really
needs to be done to fix this. maybe the example is still wrong so absolute
positioning isn't in effect? i doubt it though.
Assignee: troy → peterl
Component: Layout → Style System
This is a interesting bug. The problem is that the "z-index" property is getting
ignored, by the style system presumably. This even simpler example demonstrates
the problem:

<body>
<div style="position:absolute; width:100%; height:300px; z-index:5">
Some text in the absolutely positioned DIV
</div>
</body>

Notice that there's no trailing ';' after "z-index:5". If you put a trailing
';', then it works okay.

Also, if you use a DIV {...} style rule inside the STYLE element instead, then
it works correctly, too, regardless of whether there's a trailing ';' or not
Status: NEW → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
Fixed bug in CSS scanner. Integers at the end of the input stream were beign
treated like floats (which the parser rejected for z-index).
Status: RESOLVED → VERIFIED
Using 2/11 builds, verified fixed.
You need to log in before you can comment on or make changes to this bug.