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 23:21:54 -0700
Cc: Simon Fraser <smfr@me.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <B87B6A5C-76EE-4CEB-99EA-9C08AE0CD66A@gmail.com>
To: Brian Manthos <brianman@microsoft.com>

On Jun 9, 2011, at 11:05 PM, Brian Manthos wrote:

> I'm confused, Simon.
> 
> (a) You originally said:
>>>> linear-gradient(left, black, white)
>> 
>> 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.
> 
> To which I said:
>> linear-gradient(0deg, black, white);
>> 
>> Does it also hurt your brain that black is not used at the 0deg side
>> of the coordinate system?
> 
> 
> (b)
> And now fantasai says:
>> I'm taking an angle as a direction to move in, not as a
>> start point.
> 
> To which you replied:
>> Agreed. I don't get the same cognitive dissonance with the angle
>> variant.
> 
> 
> 
> So which is it?  Do you think of it as a start position or a direction to move in?

What do you mean by "it"? "Left" is a start position. "0deg" is a direction to move in. To a certain extent, it is that conceptual difference that makes it nice to have a keyword option instead of just using degrees.
Received on Friday, 10 June 2011 06:22:24 GMT

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