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

Re: [CSS21][css3-flexbox] width calculation for 'inline-flex' not specified (was: [CSS21] Width of an absolutely positioned table.)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 28 Aug 2012 13:52:33 -0700
Message-ID: <CAAWBYDA-0vfoYVixy16e_1uxD73nGFNh4332t8cSD7eJ2OcEnw@mail.gmail.com>
To: "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>
Cc: WWW Style <www-style@w3.org>
On Tue, Aug 14, 2012 at 9:06 PM, Kang-Hao (Kenny) Lu
<kanghaol@oupeng.com> wrote:
>> (12/06/16 21:01), Anton Prowse wrote:
>> (Note that the same issue applies to other layout models such as
>> flexbox.)
>
> This reminds me of that CSS21 + css3-flexbox is probably having a hole
> in that it doesn't say how to calculate the 'width' of a 'inline-flex'.
> I suppose
>
> changing
>
>   # 10.3.9 'Inline-block', non-replaced elements in normal flow
>
> to
>
>   | 10.3.9 atomic inline, non-replaced elements in normal flow
>
> in CSS 2.1 would be sufficient and forwards compatible.
>
>
> Given the surprise I just had, I would suggest we expand the content of
> 10.3.9 to be more clear by including
>
>   | The available width is the width of the containing block minus the
>   | used values of 'margin-left', 'border-left-width', 'padding-left',
>   | 'padding-right', 'border-right-width', 'margin-right', and the
>   | widths of any relevant scroll bars.
>   |
>   | Note: this calculation disregards both the actual length of
>   | the linebox and the presence of other contents in the same line.
>
> at the end.

We're pretty sure we agree, at least with the first part.  Filed as
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=18724>

~TJ and fantasai
Received on Tuesday, 28 August 2012 20:53:21 GMT

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