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

Re: Should z-index apply to transformed elements?

From: Simon Fraser <smfr@me.com>
Date: Sun, 10 Apr 2011 22:00:38 -0700
Cc: www-style list <www-style@w3.org>
Message-id: <C1EE0D60-0089-40F7-A6BA-6E10721985EC@me.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
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?

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

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