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

Re: [CSSWG] Minutes and Resolutions 2009-08-12

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 14 Aug 2009 09:45:38 +1200
Message-ID: <11e306600908131445t2993f533w18d41ac59b612ab9@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style@w3.org" <www-style@w3.org>
On Fri, Aug 14, 2009 at 9:34 AM, Brad Kemper <brad.kemper@gmail.com> wrote:

> On Aug 13, 2009, at 1:43 PM, "Robert O'Callahan" <robert@ocallahan.org>
> wrote:
>  Being able to specify an angle is reasonable. However, if you want a
>> linear gradient to go from one corner of the box to another, for example,
>> and you don't know the size of the box, then you can't use an angle, or if
>> you do know the size of the box, then you have to do some trigonometry.
> I don't see how that is true. The corner is implied by the angle, and once
> you have that it is the same math as defining a stop from keywords like "top
> left" or "bottom right" or whatever.

Suppose you don't know the width or height of the box, and you want the
top-left to have the start color and the bottom bottom-right to have the end

If you want the angle of the gradient to be 45deg, then you need to specify
an angle, you can't do it with start and end positions.

If you want the angle of the gradient to follow the line from top-left to
bottom-right, then you can't use a fixed angle.

So I think we need both.

"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
Received on Thursday, 13 August 2009 21:46:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:38 UTC