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 12:08:19 -0700
Message-ID: <CAAWBYDA_5wkJf3McOxdT=KXwp7qD48qP_Fq_O8KEgRdPn1dzEg@mail.gmail.com>
To: Daniel Holbert <dholbert@mozilla.com>
Cc: www-style list <www-style@w3.org>
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 GMT

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