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

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 UTC