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

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 10 Jun 2011 12:47:38 +0900
Message-ID: <4DF193DA.5050007@inkedblade.net>
To: www-style@w3.org
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.

Received on Friday, 10 June 2011 03:48:08 UTC

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