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 UTC

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