- From: Anne van Kesteren <annevk@opera.com>
- Date: Wed, 06 Jul 2011 17:40:18 +0200
- To: "L. David Baron" <dbaron@dbaron.org>
- Cc: www-style@w3.org
On Thu, 18 Mar 2010 11:11:57 +0100, Anne van Kesteren <annevk@opera.com> wrote: > On Thu, 18 Feb 2010 17:06:02 +0100, L. David Baron <dbaron@dbaron.org> > wrote: >> rgb() allows rgb(300,-10,300). > > Ah right, I see. > > So the problem is that <canvas> does not support this at all. It > serializes color values using the #rrggbb notation and the > CanvasPixelArray is 8-bit bound. I don't really know enough about it to > make a good call here I think, but the options as I see them are 1) > accept that color components are limited to 8 bits and be compatible > with <canvas>; 2) fix <canvas> somehow (how?); 3) accept that <canvas> > has limitations. > > (IE does not appear to use #rrggbb for currentStyle after all.) Opera now uses rgb() for getComputedStyle() as well because of compatibility reasons. So all browsers now serialize <color> differently depending on the context (<canvas> vs getComputedstyle()) and I guess we have to live with that. -- Anne van Kesteren http://annevankesteren.nl/
Received on Wednesday, 6 July 2011 15:40:56 UTC