Re: Should z-index apply to transformed elements?

On Apr 4, 2011, at 3:07 pm, Boris Zbarsky wrote:

> 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

It seems a little arbitrary to apply z-index but not 'top' and 'left to transformed elements. Or is z-index more worthy, because of how transformed elements create stacking context?

Simon

Received on Monday, 11 April 2011 05:01:08 UTC