Re: [css3-positioning] z-index and pseudo-stacking contexts

On Jul 23, 2012, at 5:56 PM, fantasai <fantasai.lists@inkedblade.net> wrote:

> So I have two questions (non-rhetorical):
>  1. Is it desired / are there use cases for having positioned context
>     within a z-positioned element be able to escape the z-positioned
>     element's stacking context?

But then they participate with some other stacking context? What would
the rules be for depth sorting things across different stacking contexts?

Fundamentally, browsers (at least WebKit) paint things as a tree; stacking
contexts form nodes in this tree. Depth sorting is just ordering of sibling nodes.

Adding rules about things escaping from their stacking context would break this
basic painting algorithm, and I'm not sure how you'd implement it. I'd push
strongly against additional complexity in this area; the z-order tree is what
WebKit bases it's hardware-accelerated rendering on, and that's hard enough already,
what with the crazy behavior of clipping (see <http://smfr.org/misc/css/stacking/css-escher.html>).

Simon

Received on Tuesday, 24 July 2012 01:53:27 UTC