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

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

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Wed, 15 Aug 2012 12:06:22 +0800
Message-ID: <502B203E.1060306@oupeng.com>
To: WWW Style <www-style@w3.org>
> (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.


Cheers,
Kenny
-- 
Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Wednesday, 15 August 2012 04:06:53 GMT

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