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

Re: [css3-images] Gradients feedback

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 30 Aug 2010 07:56:09 -0700
Message-ID: <AANLkTinrzcifRPq1mArYj4aOLeJ4w4cOqtBV3E-HQtP5@mail.gmail.com>
To: Alan Gresley <alan@css-class.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, Boris Zbarsky <bzbarsky@mit.edu>, www-style list <www-style@w3.org>
On Mon, Aug 30, 2010 at 6:54 AM, Alan Gresley <alan@css-class.com> wrote:
> Alan Gresley wrote:
> [snip]
>>>
>>> The grayish band in the middle of the gradient is roughly the same as the
>>> midway point between yellow and white / black in the 3d-color-prism. It
>>> would actually be half the value in intensity.
>
> [snip]
>
> 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>

Right, that's what you get if you use non-premultiplied colors
(postmultiplied?).  That's not what we want, which is why dbaron is
suggesting using premultiplied colors, so that the halfway point in
that transition will be #80800080.

~TJ
Received on Monday, 30 August 2010 14:57:03 GMT

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