[whatwg] Inconsistency between canvas and CSS color serialization
Anne van Kesteren
annevk at opera.com
Fri Feb 4 06:32:58 PST 2011
On Thu, 03 Feb 2011 19:55:21 +0100, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> It looks like CSS rgba colors with an alpha value of 0 are serialized as
> rgba() with "0" as the alpha value. in at least Gecko, Webkit, and
> Presto.
>
> It also looks like canvas style color with an alpha value of 0 are
> serialized as rgba() with "0.0" as the alpha value in Gecko 3.6, Webkit,
> and Presto.
Either way is fine. Note however that when there is no alpha-channel
involved the differences are much greater between CSS and <canvas>. At
least in Gecko/WebKit. I.e. rgb() vs #rrggbb. That probably cannot be
changed though.
--
Anne van Kesteren
http://annevankesteren.nl/
More information about the whatwg
mailing list