W3C home > Mailing lists > Public > www-style@w3.org > April 2011

Re: Should z-index apply to transformed elements?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 04 Apr 2011 15:07:09 -0700
Message-ID: <4D9A410D.1060208@mit.edu>
To: Simon Fraser <smfr@me.com>
CC: www-style list <www-style@w3.org>
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 

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC