Reputation: 1668
I don't understand how else you can let each device figure out how a page is displayed on the screen, across all devices, if it just returns the same width as the older ipads that have a smaller pixel density. how is the ipad 3 supposed to know how to display the page with just the viewport meta tag?
Upvotes: 0
Views: 143
Reputation: 100632
window.devicePixelRatio
should be set to 2 on retina devices; in Apple terms the width supplied is the width of the screen in points rather than pixels and then the pixel ratio tells you how many pixels there are per point.
Upvotes: 1