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

Re: [css3-images] Changing the angles in gradients

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 18 May 2011 09:01:43 -0700
Cc: "Eric A. Meyer" <eric@meyerweb.com>, www-style list <www-style@w3.org>
Message-Id: <628E5F70-1A7E-4947-BB89-826CD7594486@gmail.com>
To: Alan Gresley <alan@css-class.com>

On May 18, 2011, at 8:32 AM, Brad Kemper wrote:

>> Here is the bug in Firefox 4.0.1.
>> 
>> http://css-class.com/test/bugs/gecko/2-0/angle-linear-gradient-bug.htm
> 
> That does not seem relevant to this discussion. It looks like FF is parsing percentages (as bg-position) in a place where it should only be looking for degrees or keywords. But anyone authoring according to the current spec, and putting degrees in there instead of percentages, would find consistent behavior across Firefox, Safari nightlies, Chrome, and (I think) IE 10 previews.
> 
>> I do suggest that when this bug is fixed, the angles of gradient can be changed at the same time. If this happens, then you know how to exploit this current bug by using two vendor prefixes for Gecko.
> 
> That would be horrid. I already have two versions of gradients for webkit, which is painful, but at least they have different names (-webkit-gradient and -webkit-linear-gradient), and therefore do not rely on hacks.

It also looks to me like that would only work with vertical or horizontal angles, and not with, say 30deg.
Received on Wednesday, 18 May 2011 16:03:04 GMT

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