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

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