Can you use CSS media queries to detect the display's DPI? I haven't seen any examples of that.
You can at least detect the 'device pixel ratio', which seems to be > 1.0 for Retina devices, so that's something:
http://stackoverflow.com/questions/11722442/is-there-a-way-t...