W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2011

[whatwg] Inconsistency between canvas and CSS color serialization

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 04 Feb 2011 15:32:58 +0100
Message-ID: <op.vqduo7va64w2qv@anne-van-kesterens-macbook-pro.local>
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/
Received on Friday, 4 February 2011 06:32:58 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:30 UTC