[whatwg] getImageData(), the canvas backing store, and device pixels != CSS pixels

Hi,

Re: http://krijnhoetmer.nl/irc-logs/whatwg/20110930#l-81

An example in ?4.8.11.1.11 Pixel Manipulation[1] states that "the data
returned by getImageData() is at the resolution of the canvas backing
store, which is likely to not be one device pixel to each CSS pixel if
the display used is a high resolution display."

This should probably be moved out of the example and into the main prose
of the spec. It's easy for implementors to overlook normative statements
made in examples.


Thanks,
Ted

1. http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#pixel-manipulation

Received on Thursday, 29 September 2011 16:22:47 UTC