Re: [css-grid] Doubt about grid-auto-flow stack

On Tue, Jul 15, 2014 at 1:27 PM, Manuel Rego Casasnovas <rego@igalia.com> wrote:
> Hi,
>
> I've a doubt regarding stack value in grid-auto-flow property.
>
> Let's use a simple example to illustrate it. We have a 2x2 grid with
> grid-auto-flow stack that contains 3 items:
> * A with grid-row: 1 and grid-column: 1.
> * B and C with grid-row: auto and grid-column: auto.
>
> B and C would be both stacked on row 1 and column 2.
>
> However, I'd like to confirm what happens if we have another item with
> grid-row: 2 and grid-column: auto.
> IMHO it would be considered an auto-placed item and be stacked on row 1
> and column 2 too (somehow ignoring the grid-row: 2 property).
>
> Is it right?

I think it technically is right, but it shouldn't be.  The special
"stack" behavior should only affect things that are auto in both
dimensions, I think.

fantasai, what do you think?  It wouldn't be hard to fix this.

~TJ

Received on Tuesday, 15 July 2014 21:13:09 UTC