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

Re: [css3-flexbox] align-content when there's only one line.

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 28 Aug 2012 13:30:02 -0700
Message-ID: <CAAWBYDACK0Zh-Sve9wXZ_zxQRm8ST9Hoog90sNx4DmYRS7aoAA@mail.gmail.com>
To: Morten Stenshorne <mstensho@opera.com>
Cc: www-style@w3.org
On Tue, Aug 14, 2012 at 4:17 AM, Morten Stenshorne <mstensho@opera.com> wrote:
> http://dev.w3.org/csswg/css3-flexbox/#align-content
> It says:
>    The ‘align-content’ property aligns a flex container's lines within
>    the flex container when there is extra space in the cross-axis,
>    similar to how ‘justify-content’ aligns individual items within the
>    main-axis:
> And we have this note at the end:
>    Note: Only flex containers with multiple lines ever have free space
>    in the cross-axis for lines to be aligned in, because in a flex
>    container with a single line the sole line automatically stretches to
>    fill the space.
> I suppose this is because of what
> http://dev.w3.org/csswg/css3-flexbox/#flex-lines has to say:
>    When a flex container (even a multi-line one) has only one line, the
>    cross size of the line is the cross size of the flex container, and
>    ‘align-content’ has no effect.
> So far so good.
> But why then do the ‘space-between’ and ‘space-around’ paragraphs in
> 'align-content' say "or there is only a single line in the flex
> container"? If there is only one line, align-content has no effect
> (doesn't apply?), so I don't see how this can happen.

Fixed!  Remove the "or there is only a single line..." phrase, and put
a note up in the intro paragraph that this property has no effect on
single-line containers.

Received on Tuesday, 28 August 2012 20:31:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:20 UTC