Re: [css3-flexbox] chunk on line formation doesn't handle flexbox items that are wider than flexbox

On 04/17/2012 11:28 PM, Alex Mogilevsky wrote:
> sure, there must be at least one item in each line.
> 
> How does this sound?
> 
> 	2.Collect as many consecutive flexbox items as possible, starting from 
> 	the first item, <INS> then add items </INS> while keeping the sum of 
> 	their margin-box main size smaller than the flexbox's available space. 
> 	If a flexbox item is sized with a flexible length, then for the purpose 
> 	of this step, clamp its size between its minimum and maximum main 
> 	sizes. The items so collected form a single flexbox line.

This is better, yeah -- though perhaps the wording could be made
slightly clearer.  In particular, the "while keeping their margin-box
main size smaller than the flexbox's available space" chunk still sounds
a bit confusing / impossible to satisfy in the large-first-item case.
(I know the intention is for it not to apply in that case, but that's
not immediately obvious.)

Perhaps that first sentence could be replaced with something like this:
(more verbose but perhaps more clear?)

 2. Create an empty collection of flexbox items. Insert the first
    available item. If this item's margin-box main-size isn't already
    larger than the flexbox's available space, then insert as many
    consecutive flexbox items as possible, keeping the sum of their
    margin-box main sizes less than the flexbox's available space.

I'd be happy with your suggested text, too, though. (or anything else
that conveys the same idea)

Thanks!
~Daniel

Received on Wednesday, 18 April 2012 19:16:47 UTC