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

Re[2]: attr(x, y)

From: Roland Tepp <roland.tepp@mail.ee>
Date: Fri, 26 Sep 2003 09:05:04 +0300
Message-ID: <144129596235.20030926090504@mail.ee>
To: www-style@w3.org

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>
Received on Friday, 26 September 2003 01:50:58 GMT

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