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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 25 Sep 2012 15:15:41 -0700
Message-ID: <CAAWBYDBM3PrADLiNNzhOuyQ7iLWMU5t_+iHECF6J3uC=PWf_nQ@mail.gmail.com>
To: www-style list <www-style@w3.org>
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.

Received on Tuesday, 25 September 2012 22:16:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:21 UTC