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

On Wed, Jul 27, 2011 at 10:46 AM, Brian Manthos <> wrote:
> Chris Lilley:
>> TAJ> I believe a better approach would be to augment SVG's
>> TAJ> color-interpolation property with options for switching between
>> TAJ> premultiplied and non-premultiplied.  That way other things could
>> TAJ> potentially switch as well, like transitions.
>> I agree that is a better approach. Currently the color-interpolation
>> property selects between colour spaces. It would be possible to add a
>> premultipliedRGB value. Note that conversion into a premultiplied
>> colourspace does result in loss of colour precision as the opicity
>> decreases.
> The color-interpolation property proposal...
> Can we see a sample possible syntax?  I'd like to get a feel for how it behaves across rules (vs. across the page as a top-level switch).

Well, the color-interpolation property is defined by SVG already at
 If we were to extend it, I'd imagine it looking something like:

color-interpolation: auto | [ [sRGB | linearRGB] premultiplied? ]

While we're fiddling with it, I could also see adding hsl-cw and
hsl-ccw (the direction specifies what to do when the hues are
separated by 180deg) to the sRGB/linearRGB set of colorspaces.


Received on Wednesday, 27 July 2011 20:32:21 UTC