Re: CSS Gradients

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