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: Fri, 10 Jun 2011 09:03:21 -0700
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-id: <FA3874EC-E906-411F-98C3-A74F9DFD555A@me.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?
> If the former (a), then my follow-up case should have the same cognitive dissonance.
> If the latter (b), then it's a totally different thing to which I again think you're both wrong but for a different reason.  Treating that parameter as "a direction to move in" that means "left to right" but associated such a single markup string "left" seems utterly bizarre to me.

When I see a keyword like 'left', I think of it as a starting point. When I see an angle, I think of it as a vector. No confusion.

Received on Friday, 10 June 2011 16:04:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:46 UTC