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

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

From: Morten Stenshorne <mstensho@opera.com>
Date: Tue, 14 Aug 2012 13:17:16 +0200
To: www-style@w3.org
Message-ID: <87ehn9u3ib.fsf@aeneas.oslo.osa>
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.

-- 
---- Morten Stenshorne, developer, Opera Software ASA ----
---- Office: +47 23692400 ------ Mobile: +47 93440112 ----
------------------ http://www.opera.com/ -----------------
Received on Tuesday, 14 August 2012 11:17:46 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT