Closed Bug 20128 Opened 25 years ago Closed 25 years ago

Layers and CSS not rendering

Categories

(Core :: Layout, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: sitsofe, Assigned: troy)

References

()

Details

(Whiteboard: spec clarification needed??)

On the browsertune site there is supposed to be a CSS demonstration which works in both the main browsers. However, neither test works in Mozilla. Expected: Yellow box on either/both of tests. Result: No yellow box on either test. Build ID: 1999111520 Linux
Same problem on WinNT 4. IE 4 displays the second example correctly, and the second example validates as correct HTML in the W3 validator. Build ID: 1999111520 WinNT 4 SP 6
In the next CSS text, the background for the Netscape layers was rendered correctly, but the text did not animate. The second IE 4 CSS example was not rendered correctly. http://www.browsertune.com/bt98/layers2.htm Build ID: 1999111520 WinNT 4 SP 6
Don't expect a yelow box on the LAYER test, because Gecko doesn't support layers. They're not a standard and so we will not support them
As far as the yellow box displaying on http://www.browsertune.com/bt98/layers1.htm, I think the page is invalid and only work because it's written for Microsoft's implementation of absolute positioning. The issue is how a "z-index" of -1 works. The absolutely positioned image has "z-index:-1", but the BODY element also has "bgcolor=white". Because the containing block of the absolutely positioned image is the initial containing block which is the HTML element's box the BODY's background color will paint over top of the image. Cc'ing David to get his opinion as well. David, here's how I see it: IMG is child of ICB and has "z-index:-1". Therefore painting order is as follows: - absolutely positioned image - then ICB which has 'z-index' of 0 in its stacking order Because of that the BODY's background will render over the image. I don't see anything in the CSS2 spec that says that all backgrounds render first, and then content renders next. If that were the case then the painting would look like: - all backgrounds render - then IMG renders - then ICB's content But I don't think that is the case.
Whiteboard: spec clarification needed??
Since the background of the ICB (white) should cover the canvas, I'm not sure. Can anything be behind the canvas?
I don't think so
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
It seems that the testcase at http://www.browsertune.com/bt98/layers1.htm is invalid because white should cover the entire canvas and so the absolutely positioned image with "z-index:-1" will not display. I verified that if you change it to something like "z-index:1" (a number > 0), then it does display Any problems with http://www.browsertune.com/bt98/layers2.htm should be opened up as a separate bug report please
QA Contact: petersen → chrisd
Status: RESOLVED → VERIFIED
Per comments, verified invalid
You need to log in before you can comment on or make changes to this bug.