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

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

From: Brian Manthos <brianman@microsoft.com>
Date: Fri, 10 Jun 2011 06:05:04 +0000
To: Simon Fraser <smfr@me.com>, fantasai <fantasai.lists@inkedblade.net>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <FA122FEC823D524CB516E4E0374D9DCF1FB18645@TK5EX14MBXC136.redmond.corp.microsoft.com>
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?

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.
Received on Friday, 10 June 2011 06:05:35 UTC

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