W3C home > Mailing lists > Public > www-style@w3.org > December 2015

Re: [css-flexbox] available space and max-height

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 1 Dec 2015 19:41:38 -0500
To: Christian Biesinger <cbiesinger@google.com>, www-style list <www-style@w3.org>
Message-ID: <565E3E42.9000503@inkedblade.net>
On 10/09/2015 12:21 PM, Christian Biesinger wrote:
> Hi there!
>
> I was looking at this testcase:
> http://codepen.io/anon/pen/pJLwYp
>
> Originally I was focused on the intrinsic width computation, but then
> I actually realized that I can't find a spot in the flexbox spec that
> says we should break lines at the max-height. It talks about the
> available space, but its definition does not take max-height into
> account.
>
> Line breaking at max-height is interoperably implemented though. Did I
> just miss the part of the spec where it defines that? :)

This is handled in step 4 and 5
   https://drafts.csswg.org/css-flexbox/#algo-main-container
At this point we size the flex container (including honoring
max-height, of course). And then *afterwards* we break lines:
   https://drafts.csswg.org/css-flexbox/#algo-line-break

~fantasai
Received on Wednesday, 2 December 2015 00:42:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:31 UTC