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

[css-grid] Does <custom-ident> in grid-template-rows/grid-template-columns exclude auto/minmax/subgrid?

From: Daniel Holbert <dholbert@mozilla.com>
Date: Tue, 25 Feb 2014 17:51:14 -0800
Message-ID: <530D4892.4090507@mozilla.com>
To: www-style <www-style@w3.org>
Hi www-style,

Question: Should "minmax", "auto", and "subgrid" be accepted as valid
<custom-ident> values, in the <line-names> list for the
grid-template-columns and grid-template-rows properties?

I think the spec currently implies that they should *not* be accepted,
but I want to make sure (because there actually wouldn't be any
ambiguity in parsing these properties if we did accept them, since
they'd be occurring inside of a parenthesized custom-ident-only list,
separate from where we parse the special minmax/auto/subgrid keywords).

 1) The CSS3 Values spec says <custom-ident> "represents any valid CSS
identifier that does not otherwise appear as a pre-defined keyword in
that property's value definition."

 2) The keywords "minmax", "auto", and "subgrid" do "appear as
predefined keywords" in the property value definition for
grid-template-rows/grid-template-columns. (Though this depends slightly
on the definition of 'keyword'... minmax() is a *function*, technically,
but I think that means it's also a keyword?)

So, based on (1) and (2), it sounds like they're not valid
<custom-ident> values here. (definitely 'auto' & 'subgrid'; I'm less
sure about 'minmax', due to the function-vs-keyword thing mentioned above)

Please correct me if I'm misunderstanding.

Received on Wednesday, 26 February 2014 01:51:41 UTC

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