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

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

From: Philippe Wittenbergh <ph.wittenbergh@l-c-n.com>
Date: Fri, 10 Jun 2011 09:42:28 +0900
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Brian Manthos <brianman@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <CD42D521-1245-4028-AFC9-C40C73E54BBB@l-c-n.com>
To: Simon Fraser <smfr@me.com>

On Jun 10, 2011, at 9:04 AM, Simon Fraser wrote:

>> 'm sticking with top/right/bottom/left for now, but explicitly saying
>> that they indicate where the ending-point of the gradient should be.
> 
> 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.

Dito what Simon says.

If 'left' really means 'left-wards', etc, then those keywords should be dropped and replaced by something that actually says what it implies.
Or the whole thing should be more verbose, and say 'from left', etc

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/
Received on Friday, 10 June 2011 00:42:53 GMT

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