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

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

From: Matt Woodrow <mwoodrow@mozilla.com>
Date: Tue, 15 Nov 2011 16:58:27 +1300
Message-ID: <4EC1E363.2070008@mozilla.com>
To: www-style@w3.org
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?

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.

- Matt

[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 Tuesday, 15 November 2011 03:59:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:07 UTC