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

Re: Should z-index apply to transformed elements?

From: Alan Gresley <alan@css-class.com>
Date: Tue, 05 Apr 2011 03:32:39 +1000
Message-ID: <4D9A00B7.6000904@css-class.com>
To: Simon Fraser <smfr@me.com>
CC: www-style list <www-style@w3.org>
On 5/04/2011 3: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.
> 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>.
> Simon

Please see this demo.


I needed to add 'position: fixed' and 'z-index:1' for the controls 
(bottom right corner). There should not be a change in the stacking or 
painting order when going in and out.

Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
Received on Monday, 4 April 2011 17:33:20 UTC

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