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

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

From: Javier Fernandez <jfernandez@igalia.com>
Date: Wed, 19 Feb 2014 19:17:16 +0100
Message-ID: <5304F52C.8060409@igalia.com>
To: www-style list <www-style@w3.org>

>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

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’> ]? ]


Received on Wednesday, 19 February 2014 18:17:54 UTC

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