W3C home > Mailing lists > Public > www-style@w3.org > May 2012

Re: [css3-transitions] colour space used for colour interpolations

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 18 May 2012 11:05:17 +1000
Message-ID: <4FB5A04D.2030500@mcc.id.au>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Tab Atkins Jr.:
> I'm in favor of making this apply.  Note that transitions and
> gradients both work in *premultiplied* sRGB right now.  SVG officially
> doesn't have transparent colors, but in practice it does in browsers,
> as they accept all the valid CSS colors.

Yeah, we'll need to update SVG 2 to handle the new color values that 
css3-color defines.

I remember some previous discussion about whether an animation between 
two hsl() colours should interpolate in the HSL colour space by default. 
  (Can't remember whether this was in an SVG or CSS context.)  My guess 
is that that is probably what you want, but not necessarily always.  We 
could introduce an "auto" value for color-interpolation that, for 
animations, looks looks at the two colour values being interpolated 
between and to choose the appropriate colour space.  If the two colours 
are different types (say rgb() and hsl()) then we choose sRGB, but if 
they're both hsl() then we choose HSL.
Received on Friday, 18 May 2012 01:05:50 GMT

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