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

[css3-flexbox] "definite" sizes?

From: Daniel Holbert <dholbert@mozilla.com>
Date: Thu, 01 Mar 2012 13:36:05 -0800
Message-ID: <4F4FEBC5.7030901@mozilla.com>
To: www-style <www-style@w3.org>, Alex Mogilevsky <alexmog@microsoft.com>, "Tab Atkins Jr." <jackalmage@gmail.com>
Hi www-style,

The current Flexbox Layout Algorithm has its behavior conditioned off of 
whether or not sizes are "definite".  So it's clearly important for 
correctness to be able to tell whether or not that term applies to a 
given size.

However, the term "definite" isn't defined anywhere, as far as I can tell.

What precisely does it mean? Clearly it includes e.g. "width: 10px", but 
what about the following:
   * 50%
   * calc(10px)
   * calc(5in + 3em)
   * calc(intrinsic + 10px)
   * auto

Would any of those count as "definite sizes"?

For reference, here are two examples of the spec's usages of the term 
(referring to the main & cross axis, respectively):

 > If item has a definite preferred size, it is the
 > hypothetical main size.

 > If the flexbox is single-line and has a definite
 > cross size, the single flexbox line's cross size
 > is the cross size of the flexbox's content box.

Both of the above are from the "Flexbox Layout Algorithm" section
http://dev.w3.org/csswg/css3-flexbox/#layout-algorithm

Thanks!
~Daniel
Received on Thursday, 1 March 2012 21:36:33 GMT

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