W3C home > Mailing lists > Public > www-style@w3.org > April 2011

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 19 Apr 2011 13:17:33 -0700
Message-ID: <BANLkTinGE7nL_jftPoDfbhXeH5fGHV+ZNw@mail.gmail.com>
To: Alex Mogilevsky <alexmog@microsoft.com>
Cc: www-style list <www-style@w3.org>
On Fri, Apr 15, 2011 at 6:56 PM, Alex Mogilevsky <alexmog@microsoft.com> wrote:
> I think the default for preferred value is "initial value" -- if it applies to padding it will be '0', not 'auto'.

I've amended the opening to the "Flexibility" section to no longer
imply that 'margin' and 'padding' can take 'fr' or flex().


> It may be a good idea to not allow flex(1 auto 0). It is just weird. Can we say that if there are two non-negative numbers they must be together? I think there is precedent in background shortcut property.

I'm still allowing this, because it's easier to define.  It's
unambiguous in every situation, at least.  If you really want me to
disallow it, I can.


> For unitless length, it may be OK to require '0px'. It can also be defined that if there are 3 numbers, the last one is the preferred length (then the first two are never ambiguous).

I've done the latter.

~TJ
Received on Tuesday, 19 April 2011 20:18:20 GMT

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