W3C home > Mailing lists > Public > www-style@w3.org > August 2010

Re: [css3-images] Gradients feedback

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 30 Aug 2010 11:40:46 -0400
Message-ID: <4C7BD0FE.70303@mit.edu>
To: Alan Gresley <alan@css-class.com>
CC: www-style list <www-style@w3.org>
On 8/30/10 9:54 AM, Alan Gresley wrote:
> In other words, the midway point of this gradient,
>
> <div style="background:-moz-linear-gradient(left, yellow,
> transparent)"></div>
>
> is the same as this opaque color.
>
> <div style="background:#808000;opacity:0.5;"></div>

If the interpolation is performed in non-premultiplied space, yes.  In 
premultiplied space, as I said, it's "background: #ffff00; opacity: 
0.5".  Which is what the discussion is about.

> I believe Boris is correct in the mathematics.

Thanks, I try!

-Boris
Received on Monday, 30 August 2010 15:41:20 GMT

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