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

> (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 UTC