[whatwg] More random comments on the putImageData definition

Anne van Kesteren annevk at opera.com
Fri Jan 25 15:02:42 PST 2008


On Fri, 25 Jan 2008 23:56:28 +0100, Maciej Stachowiak <mjs at apple.com>  
wrote:
> getImageData/putImageData will definitely cause problems for high-DPI  
> displays in the future that are driven with a scale factor where CSS  
> pixels are not device pixels. The question is whether it's better for  
> some content to fail and other content to work (if it checks the  
> returned width/height), or for all content to lose resolution relative  
> to what the display is capable of.

Note that we already have a difference between canvas pixels and CSS  
pixels. One could easily do this for high definition displays:

   <canvas height=1000 width=1000 style=height:100px;width:100px>

(Might be a bit much.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>



More information about the whatwg mailing list