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

Re: Gradient syntax proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 17 Aug 2009 15:47:38 -0500
Message-ID: <dd0fbad0908171347t46950e4apd07df5b83ff164e8@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
On Mon, Aug 17, 2009 at 3:42 PM, Brad Kemper<brad.kemper@gmail.com> wrote:
> On Aug 17, 2009, at 11:00 AM, fantasai <fantasai.lists@inkedblade.net>
> wrote:
>
>> I would prefer restricting stops to percentages. The swapping effect
>> is confusing, and I don't see any reason you'd /need/ to use lengths
>> when you can specify the length of the overall gradient already.
>
> I can think of plenty of situations where  I'd want the whole gradient to be
> a fixed distance, regardless of box size, and regardless of angle. I'd like
> to be able to set that in a simple grammar, using color-stops only. It's not
> nearly as simple if the angle is not a multiple of 90, and I have to use
> bg-position.

Agreed on this.  It requires non-trivial trig (well, it's easy if you
remember how to do it, but most people have forgotten enough trig to
make it non-trivial) to locate where the starting/ending points should
sit with an angle that's not a multiple of 90deg.

~TJ
Received on Monday, 17 August 2009 20:48:38 GMT

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