W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2009

[whatwg] createImageData should take unsigned long

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 31 Aug 2009 13:06:16 +0200
Message-ID: <op.uziw4q1764w2qv@annevk-t60>
On Mon, 31 Aug 2009 13:00:45 +0200, Robert O'Callahan  
<robert at ocallahan.org> wrote:
> On Mon, Aug 31, 2009 at 1:55 AM, Philip J?genstedt  
> <philipj at opera.com>wrote:
>> Still, it seems unlikely that any browser will ever be able to switch to
>> anything but a 1:1 CSS pixel:device pixel ratio, as that would break all
>> existing pages assuming that getImageData(0, 0, 100, 100) returns a  
>> 100x100
>> bitmap (because assuming that is much easier, unless you read the spec
>> carefully you're unlikely to know it could ever be any different).
>
> I agree, but Ian doesn't.

Me too. I pointed this out ages ago. At some point Philip looked at some  
sites and showed that they relied on this. I've only seen Oliver and Ian  
argue in favor of the current specification.

Once we get huge screens and lots of processing power people can just blow  
up the canvas grid and then scale it down with CSS. Works just as well and  
makes the data more portable.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Monday, 31 August 2009 04:06:16 UTC

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