[webkit-dev] Canvas backing resolution

Darin Adler darin at apple.com
Wed Apr 6 07:17:52 PDT 2011


On Apr 5, 2011, at 9:52 PM, Charles Pritchard wrote:

> Long-story-short, can we please expose some of the CSS pixel scaling, either through window.devicePixelRatio

I typed javascript:alert(devicePixelRatio) in Safari on my iPhone 4, and got the value 2.

Isn’t this what you are asking for?

    -- Darin



More information about the webkit-dev mailing list