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

Re: [css-grid] is the "grid" shorthand syntax right ?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 19 Feb 2014 10:52:37 -0800
Message-ID: <CAAWBYDDDQRsm6=ogb1DdX8v9G4xe9GZQvXvYg4CXYzJRF8N64g@mail.gmail.com>
To: Javier Fernandez <jfernandez@igalia.com>
Cc: www-style list <www-style@w3.org>
On Wed, Feb 19, 2014 at 10:17 AM, Javier Fernandez
<jfernandez@igalia.com> wrote:
> >From the description of this shorthand in the last version of the
> specification I've got the idea that it's intended to define both
> implicit and explicit properties using a single declaration:
>
> "The grid property is a shorthand that sets all of the explicit grid
> properties (grid-template-rows, grid-template-columns, and
> grid-template-areas) as well as all the implicit grid properties
> (grid-auto-rows, grid-auto-columns, and grid-auto-flow) in a single
> declaration."
>
> So, I have doubts the current syntax reflects such statement:
>
>         <‘grid-template’> | <‘grid-auto-flow’> [ <‘grid-auto-columns’> [ /
> <‘grid-auto-rows’> ]? ]
>
> I understand the above syntax as someone can define either explicit OR
> implicit properties, but no both of them. If my previous assumption was
> right, shouldn't be like:
>
>        [<‘grid-template’>] ? <‘grid-auto-flow’> [ <‘grid-auto-columns’>
> [ / <‘grid-auto-rows’> ]? ]

It sets all of them.  You can only provide values for either the
explicit *or* the implicit, though.

~TJ
Received on Wednesday, 19 February 2014 18:53:24 UTC

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