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

Re: [css3-flexbox] when are margins on flexbox-items computed & subtracted from available space?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 17 Feb 2012 13:24:19 -0800
Message-ID: <CAAWBYDAAuoRUABPahaw3YChsSgJbYqrvtJ0OXnSSP5iSjL_QXw@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org
On Fri, Feb 17, 2012 at 1:20 PM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 02/17/2012 08:57 PM, Daniel Holbert wrote:
>>
>> On 02/17/2012 10:57 AM, Daniel Holbert wrote:
>>>
>>> On 02/16/2012 06:42 AM, Alex Mogilevsky wrote:
>>> > All flexbox algorithms deal with margin boxes. If it is not
>>> > made clear in the algorithm, it may need to say somewhere that
>>> > margins, border and padding are added to the preferred size.
>>>
>>> Ok -- thanks for clarifying that. I think that's not particularly clear
>>> in the current spec (though it makes intuitive sense).
>>
>>
>> In particular, I think the spec uses "main size" a bit vaguely right now.
>> In many places, "main size" refers to the
>> content-box -- but the flexbox algorithm section seems to use it to refer
>> to the margin-box. I think we need to be explicit
>> when we use this term to refer to the margin-box.
>>
>> For example: the following text (from Flexbox Layout Algorithm, step 4.2)
>> probably wants to say something like "sum of their
>> margin-box main sizes" instead of "sum of their main sizes":
>> {{
>> Collect as many consecutive flexbox items as possible, starting from the
>> first item, while keeping the sum of their main size
>> smaller than the flexbox's available space.
>> }}
>
>
> CSS defines the term 'outer width' and 'outer height' to mean
> the margin box sizes. They're used in particular in the float
> algorithms, since those are all about margin box sizes.
> Perhaps the Flexbox spec could reuse them here.

This is just me being sloppy.  I tried to always say "main size of the
content/margin box", but missed several places.

"outer/inner main size" would also work.

~TJ
Received on Friday, 17 February 2012 21:25:09 GMT

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