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

Edward O'Connor eoconnor at apple.com
Thu Sep 29 16:22:47 PDT 2011


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


More information about the whatwg mailing list