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

Re: Gradient syntax (was Re: [CSSWG] Minutes and Resolutions 2009-08-12)

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 13 Aug 2009 14:48:23 -0700
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: David Hyatt <hyatt@apple.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <20090813214823.GA1897@pickering.dbaron.org>
On Thursday 2009-08-13 15:57 -0500, Tab Atkins Jr. wrote:
> On Thu, Aug 13, 2009 at 2:55 PM, David Hyatt<hyatt@apple.com> wrote:
> > I really like this syntax.
> >
> > dave
> 
> The only problem I can see is that it doesn't let you specify an
> angle, explicitly or implicity - you're limited to horizontal or
> vertical gradients.  I'm not sure how to fix that either in this
> syntax.

You're not limited to horizontal or vertical.  You could do:
  background: linear-gradient(top left black, bottom right white);
  background: linear-gradient(0px 0px black, 200px 100px white);
etc.

But yes, you still can't specify angles directly.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 13 August 2009 21:49:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:20 GMT