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

> -----Original Message-----
> From: Tab Atkins Jr. [mailto:jackalmage@gmail.com]
> Sent: Wednesday, April 13, 2011 5:03 PM
> 
> > 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.

With some other properties we have space separated lists where arguments can go in an order. Is there a precedent in applying that to functional notation? Then flex(auto,2) could mean same as flex(2,auto). And flex(1)==flex(auto). It would seem consistent with other syntax where people don't have to remember argument order when arguments are strongly typed.

Received on Thursday, 14 April 2011 00:09:42 UTC