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

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

From: Florian Rivoal <florianr@opera.com>
Date: Fri, 10 Jun 2011 11:44:52 +0900
To: www-style@w3.org
Message-ID: <op.vwt9w2f34p7avi@localhost.localdomain>
>> 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.

  - Florian
Received on Friday, 10 June 2011 02:45:27 UTC

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