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

Re: [css3-flexbox] remove flex() function

From: Tony Chang <tony@chromium.org>
Date: Fri, 6 Jan 2012 10:03:21 -0800
Message-ID: <CAL-=4P0bSRxvQyo7wN8a8C0JmNxcY1nBawk1=3jREmLnn7yTUA@mail.gmail.com>
To: Daniel Holbert <dholbert@mozilla.com>
Cc: Ojan Vafai <ojan@chromium.org>, Alex Mogilevsky <alexmog@microsoft.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style@w3.org list" <www-style@w3.org>
On Thu, Jan 5, 2012 at 11:11 PM, Daniel Holbert <dholbert@mozilla.com>wrote:

> On 01/05/2012 04:48 PM, Ojan Vafai wrote:
>
>> I don't see a problem with just having the flex(1 0 10px) == 10px when
>> not in a flexbox. It doesn't seem weird to me.
>>
>
> Sure, but it's weirder / less intuitive when preferred width is omitted
> from the flex() function -- then it computes to 0px and won't render at
> all, since 0px is the default preferred width in flex().
>
> So e.g. "width: flex(5)" would be equivalent to "width: 0px", in
> non-flexbox contexts.
>

That seems less weird to me than "width: 100px" being ignored in horizontal
flexbox contexts.  At least in the first case, you modified the width
property so when debugging, it'll be obvious that flex(5) is causing the
width to be different.  In that latter case, you have to know to look for
the flex property to fix it.
Received on Friday, 6 January 2012 18:11:37 GMT

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