W3C home > Mailing lists > Public > www-style@w3.org > June 2014

[css-flexbox] feedback

From: Cory Brown <oh.wise.man@gmail.com>
Date: Tue, 10 Jun 2014 17:01:20 -0600
Message-ID: <CAKxo9DoKUf=FGQg1w5i=0bN5jD8v_U8mKJHWvOUT0QTcOY4kVA@mail.gmail.com>
To: www-style@w3.org
I did a cursory look around and didn't see anyone suggest this. I'd like to
see a new value for flex-wrap of "balance" or something similar.

`flex-wrap: balance;`

The purpose of this is to allow for flex-items to wrap in such a way that
each row has a more evenly distributed set of items. Right now when a
flex-row wraps, it wraps only the minimum number of items to let the row
above fit. This is fine in some cases, but I find there is often a
preference to more evenly distribute items among rows. Even attempting to
create some JavaScript that will do this has been a big challenge since
there doesn't seem to be a straight-forward way to force a row break
between flex-items.

Adobe has suggested something somewhat related with the text-wrap: balance
proposal (http://lists.w3.org/Archives/Public/www-style/2013Jan/0597.html).
This would do effectively the same thing for flex-items in a flex-container
and could have a very similar syntax.

Thanks for the consideration, feedback or suggestions.
-- 
Cory Brown
Received on Tuesday, 10 June 2014 23:01:47 UTC

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