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

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 UTC