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

On Fri, Apr 6, 2012 at 12:04 PM, Daniel Holbert <dholbert@mozilla.com> wrote:
> On 04/06/2012 11:14 AM, Tab Atkins Jr. wrote:
>>> 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?
>
> I think so, with one exception -- the paragraph that defines "preferred
> size" seems to imply that there will always be a valid 'main size
> property' that we can query. (which isn't true when we're not a flexbox
> item)
>
> In particular, this chunk seems to assume that we have a main axis:
> [[
> If the <preferred-size> component is ‘auto’, the preferred size is the
> main size property's value.
> ]]
>
> It might be worth adding "on a flexbox item" to that sentence, making it
> instead say:
> "If the <preferred-size> component is ‘auto’ **on a flexbox item**" [etc]

Ah, indeed.  Fixed as you suggest, with a similar addition to the
animating paragraph.

~TJ

Received on Friday, 6 April 2012 19:09:07 UTC