Re: [css-grid] grid-template-row/column "none" definition

On Fri, Jul 11, 2014 at 2:00 PM, Bobby Mozumder <mozumder@futureclaw.com> wrote:
> The CSS Grid spec for 5.1 grid-template-rows & grid/template-columns has:
>
> Name: grid-template-columns, grid-template-rows
> Value: none | <track-list> | subgrid <line-name-list>?
>
> Is that correct that a “none” property still allows a <line-name-list> to be
> associated with it?
>
> Should it be:
>
> Value: none | [ <track-list> <line-name-list>? | subgrid <line-name-list>? ]
>
> or:
>
> Value: none | [ [ <track-list> | subgrid ] <line-name-list>? ]

Per <http://dev.w3.org/csswg/css-values/#component-combinators>,
juxtaposing components (just listing them in the grammar without an
explicit combinator between them) binds more tightly than any
combinator, so "subgrid <line-name-list>?" is a single item, and
"none" and "<track-list>" are other separate items.

(<track-list> contains <line-name-list> in its expansion already.)

~TJ

Received on Friday, 11 July 2014 21:46:45 UTC