Re: Gradients in CSS3?

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