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

[css3-flexbox] flex-basis initial value should be 0px

From: Ojan Vafai <ojan@chromium.org>
Date: Mon, 21 May 2012 16:08:12 -0700
Message-ID: <CANMdWTvOez55DEJ31zjA3+wC_EURB8sLs95RGH1M2DQzdOtKLA@mail.gmail.com>
To: www-style@w3.org
I think this was probably an oversight in the recent changes to the spec,
but at some point, the default value of flex-basis changed from 0px to auto.

"‘flex: <positive-number>’
Equivalent to ‘flex: <positive-number> 1 0px’. This value makes the flex
item flexible, and sets the flex basisto zero, resulting in an item that
receives the specified proportion of the free space in the flex container.
If all items in the flex container use this pattern, their sizes will be
proportional to the specified flex ratio."

That seems like the correct default behavior. Having auto as the preferred
size is considerably slower and often not what the developer wants. It
should not be the default value.

"flex:auto == flex:1 1 auto" and "flex:none == flex: 0 0 auto" both seem
fine to me as is, but the default value for flex should be "1 1 0px".

Ojan
Received on Monday, 21 May 2012 23:09:22 GMT

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