Re: Should z-index apply to transformed elements?

On 4/4/11 10:18 AM, Simon Fraser wrote:
> In the 2D transforms spec<http://dev.w3.org/csswg/css3-2d-transforms/>  we say that applying the transform property to an element makes it behave like a position: relative element in the sense that it acts as a positioning container.

And also forms a new stacking context, note.

> The question is whether it should also behave like position: relative in the sense that z-index applies. WebKit does not implement this, but Boris suggests that we do<https://bugs.webkit.org/show_bug.cgi?id=57730>.

As a data point, Firefox 4, Opera 11, and IE9 seem to apply z-index to 
transformed elements.  You can see a testcase of sorts at 
https://bug647494.bugzilla.mozilla.org/attachment.cgi?id=523831

-Boris

Received on Monday, 4 April 2011 22:07:44 UTC