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

Re: [css3-flexbox] "<flex> can also transition to and from a <length>"

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 6 Apr 2012 11:14:16 -0700
Message-ID: <CAAWBYDA7onMbEh8A2CqSmhsw8S4PP6pqL+qf+mzDDF-+LwEFVg@mail.gmail.com>
To: Daniel Holbert <dholbert@mozilla.com>
Cc: www-style list <www-style@w3.org>
On Fri, Apr 6, 2012 at 9:17 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> I believe this is a remnant from when <flex> was the flex() function.
> It's definitely superfluous now, given that a bare <length> in 'flex'
> computes to "0 0 <length>", as you point out.

Removed.


>> (Presumably, we'd handle 'auto' by substituting in the computed value of
>> 'height' or 'width' for the "auto" value, as appropriate, and then
>> continuing with the transition as described in Chunk A.  And of course if
>> the given element isn't a child of a flexbox, then the meaning of an
>> 'auto' preferred size is undefined, so we can't transition.)
>
> Yes, 'auto' in 'flex' should transition iff the value for width/height
> is transitionable.  Let's see if I can fix that up...

Okay, I've attempted to fix this.  Now, if the <preferred-size> token
is ''auto'', the preferred size *concept* is the value of the main
size property.  'flex' is transitionable iff the preferred size is
transitionable.

Does this work?

~TJ
Received on Friday, 6 April 2012 18:15:00 GMT

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