4 ms·
Hm. Don't Retina iPhones actually report their resolution as the same as non-Retina ones? When you're designing web sites etc. you can use the exact same pixel
by untog 15y ago
Hm. Don't Retina iPhones actually report their resolution as the same as non-Retina ones? When you're designing web sites etc. you can use the exact same pixel values in CSS, and the iPhone does the rest.
Maybe Google Analytics handles this by multiplying screen dimensions by window.devicePixelRatio. Or maybe someone is playing with Ars.
- zokier 15y agoPixel measurements in CSS are not actual physical pixels. I think that's rather silly, but on the other hand what can you except from web tech....
- TazeTSchnitzel 15y agoThey are pixels at 100%, but a lot of mobile devices have a default viewport width making this meaningless.
- zokier 15y agoNope. CSS 2.1 specification says: * pt: points — the points used by CSS are equal to 1/72nd of 1in. * px: pixel units — 1px is equal to 0.75pt.
- raldi 15y agoBut in practice, doesn't every major non-mobile browser use 1 px = 1 pixel?
- andybak 15y agoThat being the only sane option, I sincerely hope so. Years of trying to explain to designers from a print background that it's much easier to think in pixels than doing a mental transformation from mm to dpi to screen and now the whole world goes crazy.
- zokier 15y agoMost desktop browser default to 96 PPI (which is also the default in Windows), which results to 1px being 1 pixel. 0.75 pt/px * 1/72 in/pt * 96 pixels/in = 1 pixel/px.
- kevinchen 15y agoYes, retina iPhones report their resolution as 320x480. And it's so ridiculously easy to forge a user agent. I don't understand why this is even news.
- karlshea 15y agoBut they specifically reported in the article that those user agents were coming from Apple's IP block.
- mortenjorck 15y agohttps://twitter.com/#!/sriramk/status/175719645737783296 https://twitter.com/#!/sriramk/status/175719645737783296