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

RE: [css3-flexbox] corrections/clarifications on updated flexbox algorithm

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Mon, 12 Mar 2012 10:09:31 +0000
To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <D51C9E849DDD0D4EA38C2E5398569284139C385F@TK5EX14MBXC262.redmond.corp.microsoft.com>
> From: fantasai [mailto:fantasai.lists@inkedblade.net]
> Sent: Tuesday, February 21, 2012 7:08 AM
> > "shrink-to-fit" should be defined here more specifically. It is the same as
> >  sizing a float or positioned element in CSS2.1
> > Any suggestions for normative text to put here?
> http://www.w3.org/TR/css3-writing-modes/#intrinsic-sizing
> You're looking for the "max-content" size here.

Changed to use 'max-content'. 

Also, it works differently in row vs. column directions:

	1. In row-direction flexbox, shrink-to-fit size of a flex item along the main axis is its 'max-content', as defined in [CSS3-WRITING-MODES]

	2. In column-direction flexbox, shrink-to-fit size of a flex item along the main axis is the extent in block direction that it gets when laid out using its 'fit-content' as its size in inline direction, using cross-size of flexbox content box as available measure, also as defined in [CSS3-WRITING-MODES]. 

	In multi-line column-direction flexbox, cross-size of the whole flexbox content box is used as available measure, not the share of individual flexbox line, to avoid a circular dependency of line breaks on shrink-to-fit calculations.
Received on Monday, 12 March 2012 10:10:21 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:12 UTC