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

Re: [css3-images] Premultiplication switch (was: gradient pre-multiplied interpolation)

From: Leif Arne Storset <lstorset@opera.com>
Date: Thu, 28 Jul 2011 12:06:58 +0200
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.vzbqdwx9tmo5g6@localhost.localdomain>
Tab Atkins Jr. <jackalmage@gmail.com> skreiv Wed, 27 Jul 2011 18:03:52  
+0200

> On Wed, Jul 27, 2011 at 5:37 AM, Leif Arne Storset <lstorset@opera.com>  
> wrote:
>> I agree with Alan that the effects demonstrated at [0] are desirable,  
>> but
>> premultiplied is a much better default. The switching idea is worth
>> considering, however. I think use of the rgba() and hsla() are  
>> potentially
>> confusing as switches, but an explicit 'unpremultiplied' switch wouldn't
>> be: 'linear-gradient(left, unpremultiplied, rgba(255,255,0,0), yellow)'.
>
> I believe a better approach would be to augment SVG's
> color-interpolation property with options for switching between
> premultiplied and non-premultiplied.  That way other things could
> potentially switch as well, like transitions.

Sounds quite reasonable.

-- 
Leif Arne Storset
Core Technology Developer, Opera Software
Oslo, Norway
Received on Thursday, 28 July 2011 10:07:41 GMT

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