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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 26 Feb 2014 13:25:04 -0800
Message-ID: <CAAWBYDB6u8UDy0TSw80Lvns5wORSa4Fc1KomMyC8=v-T_iTbpQ@mail.gmail.com>
To: Daniel Holbert <dholbert@mozilla.com>
Cc: www-style <www-style@w3.org>
On Tue, Feb 25, 2014 at 5:51 PM, Daniel Holbert <dholbert@mozilla.com> wrote:
> 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).
>
> FACTS:
>  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."
>    http://dev.w3.org/csswg/css-values/#custom-idents
>
>  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?)

Functions aren't keywords, no.  Keyword is just another name for ident.

> 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)

Correct, they're not valid.  You're right that they'd be unambiguous,
but I don't think it's necessary to care.

~TJ
Received on Wednesday, 26 February 2014 21:25:51 UTC

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