27 ms·
Nope, an iPhone 8 is 375x667 Edit: for those questioning my reply, I’m talking about the logical resolution (what you actually use for layout) not the physical
by myguysi 8y ago
Nope, an iPhone 8 is 375x667
Edit: for those questioning my reply, I’m talking about the logical resolution (what you actually use for layout) not the physical pixel resolution
- loeg 8y agoHow did you come up with that? iphone 8 is 1334x750.
- saagarjha 8y agoIt looks like the parent commenter is talking in points (iPhone 8 is a 2x Retina Display), while you're speaking about pixels.
- myguysi 8y agoYep!
- loeg 8y agoOk; the classic 640x480 figure is also in pixels, so I'm not sure why the parent commenter would use a different unit to try and draw a comparison.
- Mikhail_Edoshin 8y agoThere must be a pixel-per-inch ratio in this equation. A 14" monitor running at 640x480 will have around 57 ppi, while iPhone X has like 462 ppi.
- myguysi 8y agoWe’re taking about rendering UI... If I render a div with width=375px and height=667px it will fill the screen on an iPhone 8 because it renders @2x.
- gbear605 8y agoNot according to Apple. They say it is “1334-by-750-pixel resolution at 326 ppi“[0] https://www.apple.com/iphone-8/specs/ https://www.apple.com/iphone-8/specs/
- extra88 8y agoThat's the raw screen resolution but the web viewport size will be in CSS Pixels and is 667 x 375. https://vizdevices.yesviz.com/devices/iphone8/ https://vizdevices.yesviz.com/devices/iphone8/