W3C home > Mailing lists > Public > www-style@w3.org > September 2012

Re: [css3-values] Overly limited attr(foo color) syntax?

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Wed, 26 Sep 2012 00:27:31 +0200
Message-ID: <50622FD3.50004@kozea.fr>
To: www-style@w3.org
Le 26/09/2012 00:15, Tab Atkins Jr. a écrit :
> The parsing of the "color" type in attr() restricts it to being a HASH
> or IDENT token - in other words, a hash color or color keyword.  This
> disallows the various color functions.  Is this intentional?  If so,
> is it desirable?  I'm assuming the answers to both of these questions
> are "no".
>
> If I'm right, then we should change the "color" type to also accept a
> FUNCTION token, followed by anything, ending with a ) token, and still
> require it to parse into a <color> type.

Actually, I think it should be anything (not just HASH, IDENT or 
FUNCTION+args) that parses as a <color> with whatever level of the Color 
module is in use. Although it is possible that all future extensions to 
that module will use some functional syntax.

-- 
Simon Sapin
Received on Tuesday, 25 September 2012 22:28:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:00 GMT