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

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 UTC