W3C home > Mailing lists > Public > www-style@w3.org > May 2015

Re: [css-flexbox] intrinsic sizing

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 6 May 2015 16:41:36 -0700
Message-ID: <CAAWBYDA5FqAPcQh2q80vqH2HGR5OZk=iuc2VeWTN1rMLnbO4hg@mail.gmail.com>
To: Christian Biesinger <cbiesinger@google.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style list <www-style@w3.org>
On Wed, May 6, 2015 at 4:32 PM, Christian Biesinger
<cbiesinger@google.com> wrote:
> On Wed, May 6, 2015 at 7:28 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> On Wed, May 6, 2015 at 4:27 PM, Christian Biesinger
>> <cbiesinger@google.com> wrote:
>>> On Wed, May 6, 2015 at 7:26 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>>>> On Wed, May 6, 2015 at 4:11 PM, Christian Biesinger
>>>> <cbiesinger@google.com> wrote:
>>>>> On Wed, May 6, 2015 at 6:45 PM, Christian Biesinger
>>>>> <cbiesinger@google.com> wrote:
>>>>>> On Tue, May 5, 2015 at 7:57 PM, Christian Biesinger
>>>>>> <cbiesinger@google.com> wrote:
>>>>>>> On Tue, May 5, 2015 at 5:19 PM, fantasai <fantasai.lists@inkedblade.net> wrote:
>>>>>>>> Let me know if that addresses your concern.
>>>>>>>
>>>>>>> Yes... it does. (As a sidenote, why is flex-basis: available not
>>>>>>> definite? http://dev.w3.org/csswg/css-flexbox/#definite)
>>>>>>
>>>>>> After re-reading, there is another part here that requires layout to
>>>>>> calculate the intrinsic size, I think:
>>>>>> "3. Add each item’s flex basis [...]"
>>>>>>
>>>>>> The flex basis here may require layout, right? (flex-basis: content)
>>>>>
>>>>> Or maybe flex basis should say "flex base size"...?
>>>>
>>>> "flex basis" is just the 'flex-basis', or the 'width'/'height'.  "flex
>>>> base size" is the one more likely to require layout; it's the value
>>>> calculated by 9.2.3 and then clamped to get the hypothetical main
>>>> size.
>>>
>>> But how would you calculate "flex-basis: content" here without layout?
>>
>> Easily - that's the keyword that means "act like width:auto", which is
>> the same as "fill".
>
> Hmm? How is that the same as fill?

That's how width:auto works by default.  Normal behavior of a block
with width:auto is the same as width:fill.

Anyway, looking over the algorithm, you're right, it should be flex
base size, since that's what we use in step 1.

~TJ
Received on Wednesday, 6 May 2015 23:42:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC