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

Comments on gradients proposal

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 20 Oct 2009 17:16:23 +1300
Message-ID: <11e306600910192116y7bcf9961n1e7a216755314b8f@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style <www-style@w3.org>
>
> The end point is the point on the gradient-line where a line drawn
> perpendicular from that point would cross the furthest corner of the box.
>

What if the starting point is equidistant from two "furthest corners" of the
box?

(If there is no such ending point, for example if the starting-point is
> "-10px -10px" and the angle is "180deg", then the ending-point is identical
> to the starting-point.)
>

If you think of the gradient-line as extending on both sides of the starting
point, then the ending point always exists, the line just automatically
reverses direction as necessary. This is simpler to implement.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Tuesday, 20 October 2009 04:16:57 GMT

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