- From: Orion Adrian <orion.adrian@gmail.com>
- Date: Mon, 15 Aug 2005 10:04:25 -0400
- 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 UTC