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

[css3-flexbox] tables with captions as flex items

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 16 Jul 2012 23:17:33 -0400
Message-ID: <5004D94D.1000806@inkedblade.net>
To: "Tab Atkins Jr." <jackalmage@gmail.com>, Alex Mogilevsky <alexmog@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
We don't define the behavior of table flex items, in particular those with captions,
where the difference between the wrapper box and the table box is significant.

Proposal:

   On a flex item with ''display: table'',
   the table wrapper box becomes the flex item,
   and the 'order' and 'align-self' properties apply to it.
   However, like 'width' and 'height', the 'flex' longhands apply to the table box
   as follows:

   The contents of any caption boxes contribute to the calculation of
   the table wrapper box's min-content and max-content sizes.
   However, the flex item's final size is calculated by
   first laying out the captions,
   and then performing layout as if the distance between
   the table wrapper box's edges and the table box's content edges
   were all part of the table box's border+padding area,
   and the table box were the flex item.

Thoughts? Does that seem to cover it?

~fantasai
Received on Tuesday, 17 July 2012 06:18:08 GMT

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