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

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

From: Simon Fraser <smfr@me.com>
Date: Thu, 09 Jun 2011 22:36:19 -0700
Cc: www-style@w3.org
Message-id: <1B2BC7B5-8057-4AFD-BCDE-9384DBB7B26F@me.com>
To: fantasai <fantasai.lists@inkedblade.net>
On Jun 9, 2011, at 7:19 PM, fantasai wrote:

> On 06/10/2011 09:14 AM, Brian Manthos wrote:
>>> From: Simon Fraser [mailto:smfr@me.com]
>>> I don't like this, for the reason that fantasai described earlier in the thread. I
>>> think it's more intuitive for the keyword to describe the starting position of
>>> the gradient. It comes as the first parameter, so logically associates with the
>>> start of the gradient. Similarly, in the declaration it comes next to the first
>>> color stop, so mentally will be associated with that stop.
>>> linear-gradient(left, black, white)
>>> It just obviously a black->white gradient from left to right. Being right-to-left
>>> just hurts my brain.
>> linear-gradient(0deg, black, white);
>> Does it also hurt your brain that black is not used at the 0deg side of the
>> coordinate system?
> No, because I'm taking an angle as a direction to move in, not as a start point.

Agreed. I don't get the same cognitive dissonance with the angle variant.

Received on Friday, 10 June 2011 05:36:55 UTC

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