W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [css-flexbox] Should "max-width" influence the resolved flex base size? (from default "flex-basis:auto;width:auto")

From: Daniel Holbert <dholbert@mozilla.com>
Date: Fri, 20 Feb 2015 13:33:44 -0800
To: Greg Whitworth <gwhit@microsoft.com>
Cc: www-style list <www-style@w3.org>
message-id: <54E7A838.4080003@mozilla.com>
On 02/20/2015 01:28 PM, Daniel Holbert wrote:
> On 02/20/2015 12:30 PM, Greg Whitworth wrote:
>> I think there was a slight mis-communication because the fiddle you
>> shared [1] did not have the flex-basis set to content, but to auto
>> (which is the default value for flex-basis).
> Yup -- though note that "flex-basis:auto; width:auto" is exactly equivalent
> to "flex-basis:content"

To be clear, I'm also only intending to test the "flex-basis:content" behavior (and see whether it gets clamped pre-flexing by the max-width) on the *first* flex item -- the one w/ initial "flex-basis:auto;width:auto".

The second flex item has an explicit width [which I'm intending to get co-opted by its flex-basis:auto]. That item only exists so that we can see how much each flex item is shrinking & infer from that what the flex base sizes were.
Received on Friday, 20 February 2015 21:34:14 UTC

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