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

Re: [CSS3] support for linear-gradients & radial-gradients

From: Simon Fraser <smfr@me.com>
Date: Tue, 11 Jan 2011 08:58:21 -0800
Cc: Peter Beverloo <peter@lvp-media.com>, Irfan Mir <theirf@gmail.com>, www-style@w3.org
Message-id: <98C324F7-C4E5-4301-BB9C-68EF76A41D4D@me.com>
To: Alan Gresley <alan@css-class.com>
On Jan 11, 2011, at 5:03 am, Alan Gresley wrote:

> On 11/01/2011 3:54 PM, Simon Fraser wrote:
>> On Jan 10, 2011, at 8:47 pm, Alan Gresley wrote:
> 
>>> Hello Peter,
>>> 
>>> Which version of WebKit supports that syntax? I testing with the current release version 7533.19.4 (Safari 5.0.3) which uses something like this.
>>> 
>>> -webkit-gradient(linear, right center, left center, from(red), to(blue));
>> 
>> The latest nightly build has support for  the new syntax, as -webkit-linear-gradient() etc.
>> 
>> Simon
> 
> 
> Hello Simon,
> 
> With the new syntax, does WebKit show gradients from a <color> to transparent un-premultiplied like the old syntax does? From yellow to transparent there were these steps,
> 
>  rgba(255, 255, 0, 1);}
>  rgba(191, 191, 0, 0.75);}
>  rgba(127, 127, 0, 0.5);}
>  rgba(63, 63, 0, 0.25);}
>  rgba(0, 0, 0, 0);}
> 
> 
> which is interpolation in un-premultiplied space. In an old list message [1] you were leaning towards interpolation in premultiplied space as you mentioned here?

WebKit currently does color interpolation for gradients in un-premultiplied space, because of limitations of the underlying graphics library. We're tracking this as a bug <https://bugs.webkit.org/show_bug.cgi?id=51844>.

Simon
Received on Tuesday, 11 January 2011 16:59:15 GMT

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