2

According to Brett Jankord's Cross Browser Retina/High Resolution Media Queries

Windows 8 phones do not support any of the device-pixel-ratio media queries.

Is there another way to target windows phones with css?

(I don't mind if all windows phones get the hi-res images)

Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243
Bob Fanger
  • 28,949
  • 7
  • 62
  • 78

1 Answers1

1

The article then goes on saying that IE does support min-resolution but only with dpi

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
    /* Retina-specific stuff here */
}
MarZab
  • 2,543
  • 21
  • 28
  • 5
    Sadly the reported resolution is 96dpi, instead of the real 306 PPI. I'm not sure if that microsoft fault or the manufacturer. Reminds me of http://xkcd.com/221/ – Bob Fanger May 07 '13 at 15:04
  • you are right, there is a possible solution here http://stackoverflow.com/questions/14654425/detecting-hidpi-windows-phone-8-devices#answer-14658515 – MarZab May 07 '13 at 15:15