W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Re: CSS Gradients

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 14 May 2004 09:27:04 +0000 (UTC)
To: Ernest Cline <ernestcline@mindspring.com>
Cc: "Anne van Kesteren (fora)" <fora@annevankesteren.nl>, W3C CSS List <www-style@w3.org>
Message-ID: <Pine.LNX.4.58.0405140922530.30826@dhalsim.dreamhost.com>

On Fri, 14 May 2004, Ernest Cline wrote:
> First, it would require something which I believe has not yet been
> done in CSS, namely permit functions as arguments to functions.

Without commenting on the overall gradient proposal, let me just note that
this will probably be allowed with the attr() function. The syntax will
probably be:

   attr(<attribute>, <type>, <default>)

...where <default> might well be a function, e.g.:

   attr(src, url, url(image.png))
   attr(color1, color, rgba(255,0,0,0.5))
   attr(size, em, calc(6ex + 1em))

Probably no nested attr()s though.

Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 14 May 2004 05:27:13 UTC

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