Skip to content

Instantly share code, notes, and snippets.

@leostratus
Created August 27, 2012 20:48
Show Gist options
  • Save leostratus/3492086 to your computer and use it in GitHub Desktop.
Save leostratus/3492086 to your computer and use it in GitHub Desktop.
Media Query w/all vendor prefixes required for high PPI devices (eg. Retina display iPhone 4)
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (-o-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {
/* High-res version of image assets go here */
}
@kpeatt
Copy link

kpeatt commented Feb 6, 2013

Hey,
Have you seen: https://gist.github.com/marcedwards/3446599

We're just testing it out now and it seems pretty useful.

Kyle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment