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 19:41:45 +0400
Message-ID: <4300B7B9.8050604@SoftwareManiacs.Org>
To: www-style@w3.org

Laurens Holst wrote:

> Eh? Surely everybody knows that if 0 degrees is top-bottom then 90 
> degrees is right-left? And that 45 is something inbetween?

Yes. But 45 is not what you need to specify gradient for a non-sqaure 
rectangle. Keywords 'ul-br' and 'bl-ur' mean straight line from corner 
to corner, no matter how many degrees is this for a given rectangle. 
They don't mean just 45 or -45.

> - Has using keywords in a ‘function’ got precedent? It seems odd.

Then don't make it function, it doesn't matter. Let's make it like this:

background-gradient-colors:blue white;

And use it in a shorthand:

gradient:blue white ul-br;

> Frankly, either is fine with me.

Then why choose? Let's specify gradient-direction both in helpful 
keywords and flexible degrees. Like 'background-position' currently does.
Received on Monday, 15 August 2005 15:42:19 UTC

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