On Mon, Jun 1, 2009 at 3:47 PM, Boris Zbarsky <span dir="ltr"><<a href="mailto:bzbarsky@mit.edu">bzbarsky@mit.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Oliver Hunt wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Worse yet, the current setup means that a script that tries<br>
createImageData, fill in the pixels, and then paint it to the<br>
canvas, needs to fill different numbers of pixels depending on the<br>
output device. I fully expect script authors to get this very very<br>
wrong, since it's such non-intuitive behavior. It would make more<br>
sense to just have the script work entirely in CSS pixels; if it<br>
wishes to create a higher-resolution image it can create a canvas<br>
with bigger dimensions (and scale its actual display via setting<br>
its width and height CSS properties).<br>
</blockquote>
This has been discussed heavily before.<br>
</blockquote>
<br></div>
Pointer, please.</blockquote><div><br>Here are a couple of relevant threads: <br></div></div><a href="http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2007-May/011284.html">http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2007-May/011284.html</a><br>
<a href="http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2008-February/013906.html">http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2008-February/013906.html</a><br>Then there was a discussion on #whatwg more recently.<br>
<a href="http://krijnhoetmer.nl/irc-logs/whatwg/20090326#l-263">http://krijnhoetmer.nl/irc-logs/whatwg/20090326#l-263</a><br><br>So far it seems the data supports the hypothesis that authors expect getImageData to return 1 image pixel per CSS pixel and their scripts break when that's not true. That won't change until authors all have high-dpi screens.<br>
<br>Actually I thought I'd won Ollie over on this:<br><a href="http://krijnhoetmer.nl/irc-logs/whatwg/20090326#l-367">http://krijnhoetmer.nl/irc-logs/whatwg/20090326#l-367</a><br>
<br>Rob<br>-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]<br>