W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2012

Re: Interaction between opacity and transform-style

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 15 Mar 2012 00:22:02 +0000
Message-ID: <CAOp6jLZJ2yp4A75i=HFtrgZa2+udOz98U1+steU6gEw1bpyNLw@mail.gmail.com>
To: Aryeh Gregor <ayg@aryeh.name>
Cc: public-fx@w3.org, "L. David Baron" <dbaron@dbaron.org>, Matt Woodrow <mwoodrow@mozilla.com>
On Mon, Mar 5, 2012 at 7:19 PM, Aryeh Gregor <ayg@aryeh.name> wrote:

> 1) What order do the boxes render?  Without the opacity, it should be
> the green box on top of the red box on top of the yellow box (in order
> of Z-coordinate).  This is how Chrome 19 dev behaves with opacity.
> Firefox 13.0a1 puts the yellow box on top of the green box on top of
> the red box.  The current spec seems to imply that the yellow box
> should be on top of the red box on top of the green box (in DOM
> order), because it says the transform-style of an element with opacity
> is always flat.  Chrome's behavior certainly makes the most sense,
> because it's surprising that opacity would affect Z-ordering.
>

Why is that surprising? opacity has always affected Z-ordering in CSS.

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]
Received on Thursday, 15 March 2012 00:22:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 15 March 2012 00:22:33 GMT