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

Re: Gradients in CSS3?

From: Orion Adrian <orion.adrian@gmail.com>
Date: Mon, 15 Aug 2005 10:04:25 -0400
Message-ID: <abd6c80105081507045e05d33f@mail.gmail.com>
To: www-style@w3.org

On 8/15/05, Maniac <Maniac@softwaremaniacs.org> wrote:
> 
> Ben Ward wrote:
> 
> >As for syntax, perhaps:
> >   background-color: gradient(start-color, end-color, direction);
> >
> >Where the colours can be any valid CSS colour value, and direction is
> >specified in degrees (0-259).
> >
> >
> May be not degrees then? If one want a gradient from top left corner to
> bottom right of a rectangle 134x57, it would be non-trivial to calculate
> a degree in mind.
> 
> I think specifying to points with 4 coordinates would be better. It
> would also work for stretching rectangles:
> 
> background-color: gradient(blue, white, 0, 0, 100%, 100%);

How much of this desire to put it into CSS is because nobody wants to
implement SVG and/or nobody thinks authors will learn SVG just to get
gradients?

-- 

Orion Adrian
Received on Monday, 15 August 2005 14:04:44 GMT

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