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

Re: Gradients in CSS3?

From: Maniac <Maniac@SoftwareManiacs.Org>
Date: Mon, 15 Aug 2005 17:52:04 +0400
Message-ID: <43009E04.8050205@SoftwareManiacs.Org>
To: www-style@w3.org

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%);
Received on Monday, 15 August 2005 13:56:56 GMT

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