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

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 26 Sep 2012 02:46:46 -0700
Message-ID: <5062CF06.6050601@inkedblade.net>
To: www-style@w3.org
On 09/25/2012 03:15 PM, Tab Atkins Jr. wrote:
> 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.

I think this is intentional. It's not expecting CSS as input,
it trying to reuse data from a different format. The color
keywords and hash notation is pretty standard syntax for
colors, but our color functions are not.

~fantasai
Received on Wednesday, 26 September 2012 09:47:21 GMT

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