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

Re: radial-gradient() proposal

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 6 Nov 2009 12:57:57 +1300
Message-ID: <11e306600911051557k54190447pd03404c7ebca747a@mail.gmail.com>
To: Simon Fraser <smfr@me.com>
Cc: Dean Jackson <dino@apple.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
On Fri, Nov 6, 2009 at 12:14 PM, Simon Fraser <smfr@me.com> wrote:

> On Nov 5, 2009, at 2:32 PM, Robert O'Callahan wrote:
>
>  Wouldn't it make more sense for the default start point to be "top center"
>> so that the default is a vertical gradient, like with Tab's proposal? There
>> seem to be far more vertical gradients than diagonal gradients on the Web.
>>
>
> I was trying to avoid "magic" default values, so was defaulting to top
> left.
>

I don't see how "top left" is less magical that "top center". They're both
arbitrary, and one is more useful than the other.

Note that I was also trying to have the points follow the same shorthand
> rules as background-position, where an omitted value defaults to 'center'.
> So 'top' becomes 'center  top'.
>

Defaulting to "center" to be consistent with background-position would be
the right thing to do if "center" was at all useful for gradients, but
unfortunately it isn't.

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 Thursday, 5 November 2009 23:58:30 GMT

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