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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 15 Jul 2014 14:12:23 -0700
Message-ID: <CAAWBYDAUPJiy+i-5k+OR7rk_d6xHyv-NHuegYGF=rKeTjf+6Tg@mail.gmail.com>
To: Manuel Rego Casasnovas <rego@igalia.com>
Cc: www-style list <www-style@w3.org>
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

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