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

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

From: Brad Kemper <brad.kemper@gmail.com>
Date: Thu, 9 Jun 2011 21:11:22 -0700
Message-Id: <4AD6C1FE-BDA4-4577-8ABB-67AF693E8664@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: Florian Rivoal <florianr@opera.com>
On Jun 9, 2011, at 7:33 PM, "Florian Rivoal" <florianr@opera.com> wrote:

> I think we should replace left with leftwards, top with upwards, etc. Some people might say that leftwards is an uglier word than left, but I am sure nobody will ever be confused about what it means.

That doesn't work out that well for corner to corner. "upper-rightwards"? Or "upwards rightwards"?

I think that one of the main points of using the keywords instead of angles is that instead of picking a direction you can pick a side. You use that side to start the gradient, and from that side you start naming your colors and (optionally) how far from ghat side each one is. 

But really, the ONLY reason we actually NEED the keywords is for the corner to corner cases. The single up, down, right, left cases can all be written as degree directions. If not for corner to corner, you could just use a single type of notation for all directions, and do away with ambiguous keywords. Simplify. 

Which is why I had originally proposed sticking with a single way to specify any direction (degrees), and just add a single keyword to say whether or not the angle could change with the box shape the way corner-to-corner gradients do (based on a square, so 45deg would be a down-and-to-the-right corner-to-corner gradient <<using the new meaning of degrees>> ). 
Received on Friday, 10 June 2011 04:11:54 UTC

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