3 ms·
1px means 2 pixels on "retina" displays (iPhone 4). On some recent Android phones 1px = 1.5 pixels. CSS1 says "Pixel units are relative to the resolution of th
by wmf 15y ago
1px means 2 pixels on "retina" displays (iPhone 4). On some recent Android phones 1px = 1.5 pixels.
CSS1 says "Pixel units are relative to the resolution of the canvas, i.e. most often a computer display. If the pixel density of the output device is very different from that of a typical computer display, the UA should rescale pixel values." http://www.w3.org/TR/2008/REC-CSS1-20080411/#length-units http://www.w3.org/TR/2008/REC-CSS1-20080411/#length-units
Apple's explanation of their implementation: http://www.webkit.org/blog/55/high-dpi-web-sites/ http://www.webkit.org/blog/55/high-dpi-web-sites/
There was intense discussion at the time, but ultimately this rule exists for a reason and is beneficial in virtually all situations.