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

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 10 Jun 2011 11:33:34 +0900
Message-ID: <4DF1827E.1080007@inkedblade.net>
To: www-style@w3.org
On 06/10/2011 08:23 AM, Tab Atkins Jr. wrote:
> On Tue, Jun 7, 2011 at 11:34 AM, Brian Manthos<brianman@microsoft.com>  wrote:
>> Paraphrasing [1]:
>> When specified via angle, the angle can be understood as both the direction ("toward the<angle>") and the ending point ("ends at<angle>").
>>
>> Paraphrasing [2] and [3]:
>> When specified via keyword, the keyword can be understood as both opposite direction ("away from the<keyword(s)>") and the starting point ("starts at<keyword>").
>>
>>
>> Is it intentional that these two ways of specifying gradient-line are opposite?
>
> I've just committed a change to switch the way keywords are interpreted.

This type of change would require a WG resolution.

> I'm sticking with top/right/bottom/left for now, but explicitly saying
> that they indicate where the ending-point of the gradient should be.
>
> In the same commit, I also fixed the spec bug where interpolating from
> "left" (270deg) to "top" (0deg) would give a 270deg CCW rotation,

This is fine to fix on your own.

~fantasai
Received on Friday, 10 June 2011 02:34:10 GMT

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