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

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

From: Daniel Holbert <dholbert@mozilla.com>
Date: Thu, 05 Jan 2012 23:11:02 -0800
Message-ID: <4F069E86.9040707@mozilla.com>
To: Ojan Vafai <ojan@chromium.org>
CC: Alex Mogilevsky <alexmog@microsoft.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, Tony Chang <tony@chromium.org>, "www-style@w3.org list" <www-style@w3.org>
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.
Received on Friday, 6 January 2012 07:11:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:54 UTC