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

Re: [css-flexbox] Alignment differences should depend on wrapping not # lines

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 19 Jan 2015 20:48:12 -0500
Message-ID: <54BDB3DC.3090509@inkedblade.net>
To: "www-style@w3.org" <www-style@w3.org>
On 10/28/2014 01:41 AM, fantasai wrote:
> http://www.w3.org/TR/2014/WD-css-flexbox-1-20140925/#align-content-property
>    # 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. Note, this property has no
>    # effect when the flex container has only a single line.
> http://www.w3.org/TR/2014/WD-css-flexbox-1-20140925/#flex-lines
>    # 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.
> This makes the alignment behavior of flex items depend on whether
> the content wraps. So, for example, if an author wanted to center
> all the items with 'align-content: center', and assumed that they
> would wrap, and I happened to open the page on a really wide monitor,
> or there were fewer database items than the author tested, suddenly
> the items would no longer be centered.
> We should fix this by making the alignment behavior depend on
> the value of 'flex-wrap', not on how many lines were in the
> flex container.

Just to follow up, this change was agreed on by the WG and checked in.

Received on Tuesday, 20 January 2015 01:48:46 UTC

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