W3C home > Mailing lists > Public > www-style@w3.org > July 2005

Re: [css3-values] attr() function

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Sun, 31 Jul 2005 23:17:52 +0200
Message-ID: <42ED4000.50709@students.cs.uu.nl>
To: Orion Adrian <orion.adrian@gmail.com>
CC: www-style@w3.org

Orion Adrian schreef:

>I think it's unreasonable to think that languages will always use the
>CSS color syntax. There will always need to be some sort of conversion
>function. With HTML4, it's fairly simple, but even so, there's no
>conversion function even for something as simple as putting a # in
If anything, it will encourage new languages which can have CSS applied 
to them to use CSS naming conventions and syntax for e.g. their colour 
names. I only think that is a good thing.

And otherwise, a thing like your language specific function, or rather, 
having language specific types, is indeed an option. E.g. Mozilla could 
implement color: attr(color, -moz-html-color); or something which would 
then accept colours without # in ‘quirks mode’.

Assuming they would want to implement it through CSS like that... :)

Received on Sunday, 31 July 2005 21:18:02 UTC

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