News for hackers. Stuff that matters.
Re:Retina.js: Retina graphics for your website by ryannielsen on Friday April 20, 2012 @03:49PM (#3869497)
The iPhone 4 and 4S also "lie". It's not really a lie, though. The displays are intended to have higher pixel density, not more screen real estate. By reporting the "incorrect" size, websites are actually sized consistently across all generations of iPhones and iPads, but the retina devices render the same content with higher resolution.

PS: you may wish to add a "(-webkit-min-device-pixel-ratio: 2)" clause to your media queries if you want to target retina devices.

There are no comments on this comment yet.