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

Re: [css3-images] linear-gradient keywords and angles are opposite

From: Brad Kemper <brad.kemper@gmail.com>
Date: Thu, 9 Jun 2011 21:13:59 -0700
Message-Id: <43D0140D-CCBA-4C56-9028-460D32109B7B@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: fantasai <fantasai.lists@inkedblade.net>

On Jun 9, 2011, at 8:47 PM, fantasai <fantasai.lists@inkedblade.net> wrote:

> On 06/10/2011 11:44 AM, Florian Rivoal wrote:
>>>> Secondly the default for a linear-gradient should be top. The below
>>>> gradients would be identical.
>>>> linear-gradient(pink, orange 50px, blue 50px, lime); linear-gradient(top,
>>>> pink, orange 50px, blue 50px, lime);
>>> Mind elaborating on why you think the default should be top ? Or is it
>>> related to the discussion below ?
>> I would argue in favor of upwards (aka "from bottom", aka old "bottom", aka new "top" ), as the default. The nice thing about
>> having a default orientation, besides the fact that you don't have to say it explicitly if that's the one you need, is that
>> then, we can define gradients described with an angle as rotate clockwise from the default orientation.
>> Since we've agreed that 0 degrees gradients are upwards gradients, upwards should be the default.
> I disagree. If I just wrote
>  linear-gradient(navy, blue, aqua)
> I think it would make more sense for the first value to be the top and the
> last to be the bottom, just like text content starts at the top and ends
> at the bottom.

Hmm. When I read your "navy, blue, aqua" text, it starts on the left and ends on the right. 
Received on Friday, 10 June 2011 04:14:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:02 UTC