W3C home > Mailing lists > Public > www-style@w3.org > August 2014

[css-flexbox] getting flex base size from aspect ratio, with explicit "flex-basis:auto"

From: Daniel Holbert <dholbert@mozilla.com>
Date: Thu, 07 Aug 2014 14:14:43 -0700
Message-ID: <53E3EC43.2010809@mozilla.com>
To: www-style <www-style@w3.org>
Hi www-style,

The flexbox ED says the following about determining flex basis:

 #  [dholbert: If the flex item has an indefinite flex basis,
 #   so that we get past option (A), AND...]
 # (B) If the flex item has ...
 #      * an intrinsic aspect ratio,
 #      * a flex basis of 'main-size', and
 #      * a definite cross size
 #     then the flex base size is calculated from its inner cross size
 #     and the flex item’s intrinsic aspect ratio.

I think that second bullet-point under B should be expanded to include
explicit 'auto' for flex-basis. So it should say:
 #      * a flex basis of 'main-size' or 'auto', and

Otherwise (with the current spec language), we'll use the intrinsic
aspect ratio inconsistently. We'd use it here:
 <img style="flex-basis:main-size;height:auto;width:30px">
...but not here:
 <img style="flex-basis:auto;width:30px">

(assuming this <img> is an item in a vertical flex container)

Received on Thursday, 7 August 2014 21:15:11 UTC

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