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

Re: radial-gradient() proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 5 Nov 2009 14:55:12 -0800
Message-ID: <dd0fbad0911051455t248d70a9v9827b142f646ba63@mail.gmail.com>
To: Dean Jackson <dino@apple.com>
Cc: robert@ocallahan.org, Simon Fraser <smfr@me.com>, www-style list <www-style@w3.org>
On Thu, Nov 5, 2009 at 2:42 PM, Dean Jackson <dino@apple.com> wrote:
>
> On 06/11/2009, at 9:35 AM, Tab Atkins Jr. wrote:
>
>> On Thu, Nov 5, 2009 at 2:32 PM, Robert O'Callahan <robert@ocallahan.org>
>> 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.
>>
>> That was precisely what I was told when I last asked - vertical
>> gradients seem to be the most common.
>
> Yeah, good point.
>
> linear-gradient(yellow, blue) - horizontal from top to bottom
>
> To me, the next most important thing is that the examples below make sense:
>
> linear-gradient(left, right, yellow, blue) - should be horizontal
> linear-gradient(top, bottom, yellow, blue) - should be vertical
>
> I'd suggest these are going to be by far the most common, so they should be
> simple to understand and make sense when read (aloud).

If I return to allowing a two-point syntax (which I suspect I will,
because of the additional uses that Simon brought up), it'll simply
be:

linear-gradient(left to right, yellow, blue)
linear-gradient(top to bottom, yellow, blue)

~TJ
Received on Thursday, 5 November 2009 22:56:06 GMT

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