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

Re: Re[2]: attr(x, y)

From: Afternoon <afternoon@uk2.net>
Date: Fri, 26 Sep 2003 08:58:16 +0100
To: www-style@w3.org
Message-Id: <2F61DCAA-EFF7-11D7-B99E-000A957E8988@uk2.net>


This sounds like an excellent idea.

I think your first example is good.

Ben


On Friday, Sep 26, 2003, at 07:05 Europe/London, Roland Tepp wrote:

>
> Hello everybody,
>
> A bit offtopic, but since the attr() came up in this thread, I'd add 
> few
> cent of my own to the 0
>
> Currently the css functions are used rather statically in the sense 
> that
> one can not nest them eg. use constructs like:
>   list-style-image: url("/images/" attr(name) ".gif");
>
> In the light of the new and improved attr(x, y) one could for example 
> try
> and specify
>    color: 
> rgb(attr(r,number),attr(g,number),attr(b,number),attr(a,number));
>
> imo this would make css functions (and specifically attr(X)) much more 
> useful
> than they currently are, allowing (where appliccable) uses that could 
> greatly
> improve the overall flexibility of stylesheets.
>
> What do you think?
> -- 
>  Roland Tepp <roland.tepp@mail.ee>
>
>

(q)	Ben Godfrey?
(a)	Web Developer and Designer
	See http://aftnn.org/ for details
Received on Friday, 26 September 2003 04:02:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:23 GMT