W3C home > Mailing lists > Public > www-style@w3.org > January 2012

[css3-flexbox] does flex-order impact stacking order of overlapping content

From: Daniel Holbert <dholbert@mozilla.com>
Date: Fri, 27 Jan 2012 12:04:26 -0800
Message-ID: <4F23034A.7090609@mozilla.com>
To: "www-style@w3.org list" <www-style@w3.org>
Hi www-style,

In the current Flexbox ED "Layout Algorithm" section, it says this about 

 > Re-order the flexbox items according to their ‘flex-order’.
 > This affects the order in which the flexbox items generate
 > boxes in the box-tree

Given that -- hypothetically, if two flexbox items were to contain 
overlapping content[1], would flex-order have any effect on which one 
overlaps the other? (i.e. does flex-order affect stacking in the z axis?)

I've been assuming "no", since (discounting the "z-index" property) 
elements generally stack in the z axis according to *document order*. 
So, since flex-order is independent of document order, I wouldn't expect 
it to affect stacking in the z axis.

Just wanted to clarify, though, because "the order in which flexbox 
items generate boxes in the box tree" sounded like it might impact 


[1] I'm not 100% sure that it's even possible to get overlapping content 
in different flexbox-items, but I'm guessing it might be doable with 
"position:relative" or something.
Received on Friday, 27 January 2012 20:05:05 UTC

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