Re: [css-flexbox] Allow specifying when wrapping should happen

On 01/19/2015 10:18 PM, fantasai wrote:
> On 01/18/2015 12:11 PM, Daniel Holbert wrote:
>> I think the "page-break-before" property should already provide this
>> behavior, as described here:
>>   http://dev.w3.org/csswg/css-flexbox-1/#algo-line-break
>
> Actually, this seems to be a point where the spec conflicts with itself.
> Or at least, it's not very clear what happens on row flexboxes.
> Compare that to this:
>    http://dev.w3.org/csswg/css-flexbox-1/#pagination

So, I've been thinking about this, and I think we should resolve
this conflict in favor of the Pagination section, because that's
what we'll have to do for Grid Layout.

In Grid Layout, if you set page-break-before on an item, it
will have to push the whole row because there's no such thing
as wrapping.

(Obviously we'd thought this through before, when we were writing
the Pagination section, but I couldn't remember the logic.)

I'll clarify the spec.

~fantasai

Received on Wednesday, 11 February 2015 04:43:08 UTC