Re: Should z-index apply to transformed elements?

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.


http://css-class.com/test/css/3/3d-animation/outside-and-inside-the-box2.htm


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