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

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 UTC