W3C home > Mailing lists > Public > www-style@w3.org > July 2011

Re: [css3-images] Gradient Magic

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 18 Jul 2011 15:08:27 -0700
Message-ID: <CAAWBYDBM04EJ7kB0D0tbuh1KCiMkuQhDyyDgF64ePmsh74XQpg@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Brian Manthos <brianman@microsoft.com>, Behnam Esfahbod ZWNJ <behnam@zwnj.org>, WWW-Style <www-style@w3.org>
On Mon, Jul 18, 2011 at 2:55 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
> Well, the way I thought of it was to stretch a square to determine the
> length, angle, and placement of the gradient path. But still place the color
> stops along the final path within the final rectangle. What Behnam made me
> think though is that the final angle shouldn't be based on the path of the
> two gradient endpoints (45deg to connect two corners), but rather on a path
> perpendicular to the OTHER two endpoints. Once you resolve what the final
> used angle should be in degrees, you just treat it like those degrees were
> specified by the author.

I think that's very difficult to visualize or think about, and it
would be unimaginably simpler to just draw the gradient into a square
and then stretch it, exactly as if you were using objectBoundingBox
units.

~TJ
Received on Monday, 18 July 2011 22:09:14 GMT

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