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

RE: Talk on radial gradients

From: David Perrell <davidp@hpaa.com>
Date: Mon, 24 Aug 2009 22:00:17 -0700
To: "www-style list" <www-style@w3.org>
Tab Atkins Jr. wrote:
| I'm just really hesitant to add an explicit ending-circle declaration,
| because it's rather complex (a full bg-position to place the center,
| then up to two radiuses to finish it out).  I think you can get the
| effects you want just by using <length> on your color-stops, and that
| this technique is probably roughly as easy as an explicit
| ending-circle declaration.

Yes, like linear-gradient in that respect.

Are you considering ellipses at only 0 and 90 degrees? I don't like that limitation.

An ellipse can be specified with a center position, an angle for the primary axis, and an angle for shape of the ellipse (90deg is a circle, 0deg is a line).

Color stops would extend along the primary axis, measured from the center. Color-stop percentages would refer to the distance from the center point to the intersection of the primary axis with the side of the box, at the specified axis angle.

Default position would be centered. Default axis would be in the widest dimension. Default shape would have the 100% point on the minor axis touching a side. Simple vignettes would really be simple.

- davidp
Received on Tuesday, 25 August 2009 05:01:27 UTC

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