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 00:14:21 +0000
To: Simon Fraser <smfr@me.com>, Tab Atkins Jr. <jackalmage@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <FA122FEC823D524CB516E4E0374D9DCF1FB1817D@TK5EX14MBXC136.redmond.corp.microsoft.com>
> 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?
Received on Friday, 10 June 2011 00:15:00 GMT

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