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

Re: [css-flexbox] Understanding flexbox-flex-direction-column.htm

From: Christian Biesinger <cbiesinger@google.com>
Date: Tue, 24 Mar 2015 21:26:39 -0400
Message-ID: <CAPTJ0XHhVTVGKVbvXggzjQRoyUu7A_a=1oX5jhtsDVTMEYtoBg@mail.gmail.com>
To: www-style list <www-style@w3.org>
dholbert points out that "content" should be "auto" in this sentence
of the spec:
> If the item’s computed flex-basis is definite, or the item’s computed flex-basis is content and its computed main size property is definite

Could someone update the spec? :) Thanks!

-christian

On Tue, Mar 24, 2015 at 8:48 PM, Christian Biesinger
<cbiesinger@google.com> wrote:
> Hi there!
>
> I was looking at this test:
> http://hg.csswg.org/test/file/218b5e6fddbe/css-flexbox-1/flexbox-flex-direction-column.htm
> http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/flexbox-flex-direction-column.htm
>
> And I'm trying to understand why the behavior it expects is correct.
> Here is my reasoning:
>
> - We have min-width auto. Therefore, we need to calculate the min-content height
> - Because we have line-height: 40px, the min-content height is 40px
> - 40px > 38px, so the height property does not get applied
>
> - Now, we apply the algorithm in
> http://dev.w3.org/csswg/css-flexbox/#min-size-auto
> clamped size: The computed flex-basis is auto (the default). So the
> clamped size is undefined
> content size: No min/max sizes. So content size is 40px, as mentioned above
>
> -> Each flex item has a content height of 40px, so a border-box height of 42px
>
> This is too high for the test. It expects exactly 40px of border-box
> height. Why is that correct?
>
> (Same question, of course, for
> css-flexbox-1/flexbox-flex-direction-column-reverse.htm)
>
> Thanks!
> -christian
Received on Wednesday, 25 March 2015 01:27:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC