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

RE: [css-3d-transforms] Opacity and perspective handling

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 18 Nov 2011 21:59:07 +0000
To: Matt Woodrow <mwoodrow@mozilla.com>, "www-style@w3.org" <www-style@w3.org>
CC: "Dean Jackson (dino@apple.com)" <dino@apple.com>, "Simon Fraser (smfr@me.com)" <smfr@me.com>
Message-ID: <3C4041FF83E1E04A986B6DC50F01782903389B30@TK5EX14MBXC296.redmond.corp.microsoft.com>

[Matt Woodrow:]

>The spec for the perspective property [1] states that it ' applies only to the positioned or 
>transformed children of the element'. Is 'children' meant to mean 'descendants' here?

>In this test case [2], WebKit is applying perspective to the transform, even though the 
>transformed frame isn't a direct child of the frame with perspective. Is this expected behaviour, 
>or a bug?

I believe you are right; this is supposed to be descandants.


>Also, is preserve-3d meant to change the definition of opacity? 

>In this example test case [3], opacity is applied to the parent element of a preserve-3d 
>hierarchy. WebKit is rendering each of the children with opacity separately, such that you can 
>see the other elements through them. In firefox all the elements are rendered with solid color 
>and flattened into a buffer before having opacity applied, as (I believe) is expected for group 
> opacity.

This is stranger; while the Webkit result looks pretty cool it's as if opacity was being inherited. I don't think that's intentional.

>[1] http://dev.w3.org/csswg/css3-3d-transforms/#perspective
>[2] https://bug702375.bugzilla.mozilla.org/attachment.cgi?id=574475
>[3] http://ikilote.net/Programmation/CSS/Test/transform-style.htm
Received on Friday, 18 November 2011 21:59:37 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:46 GMT