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

Re: Gradients by angle (was Re: [CSSWG] Minutes and Resolutions 2009-08-12)

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 13 Aug 2009 15:57:30 -0700
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: www-style@w3.org
Message-ID: <20090813225730.GA4882@pickering.dbaron.org>
On Friday 2009-08-14 10:45 +1200, Robert O'Callahan wrote:
> Then I suggest we just require two points and allow an optional angle as
> well. Linear gradients really have "start lines" and "end lines"; we define
> the start line of the gradient as the line that passes through the start
> point which is perpendicular to the given angle, and the end line of the
> gradient is the line that passes through the end point which is
> perpendicular to the given angle. The angle defaults to the angle of the
> line from the start point to the end point.

That seems reasonable.

But I think another option would be an angle with *zero* points,
where the points are implicitly the corners of the background
positioning area, and which otherwise matches your formula.

If that meets the use cases for angle gradients than I think having
zero points would be simpler than having two.  The question is what
those use cases are, exactly.


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 13 August 2009 22:58:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:28 UTC