Re: [css3-flexbox] Best way to denote flexible lengths

On Wed, Apr 13, 2011 at 4:48 PM, Alex Mogilevsky <alexmog@microsoft.com> wrote:
>> -----Original Message-----
>> From: Tab Atkins Jr. [mailto:jackalmage@gmail.com]
>> Sent: Wednesday, April 13, 2011 2:15 PM
>>
>> Nah, using 'fr' (or 'fl', whatever) for absolute flex and
>> 'flex(<pref>,<pos-flex>,<neg-flex>)' for relative flex.
>>
>
> I think it is worth trying. It means
>
>        2fr == flex(2,0,0px)
>
> Right?

Yes.


> And would this mean that you are then satisfied with how easy it is to apply absolute flex, so the default value for preferred size in flex() function can be *initial value*, and "width:flex(2)"=="width:flex(2,0,auto)" ?

I was thinking that the ordering would put the preferred size first,
so you'd say "flex(auto,2)", but if you prefer the other ordering with
the preferred size last, that's cool too.  I don't have a strong
opinion.

~TJ

Received on Thursday, 14 April 2011 00:03:34 UTC