Comment simuler ratio de pixel pour tester les requêtes de média avec Google Chrome ou Firefox sur Windows?

Alors qu'il est facile de tester différentes résolutions d'écran dans Google Chrome, je me demande comment les développeurs ont pu tester différents pixels de l'équipement ratios sous-jacents suivants CSS media queries.

/* Pixel ratio of 1. Background size is 100% (of a 100px image) */
#header { background: url(header.png); }

/* Pixel ratio of 1.5. Background-size is 1/1.5 = 66.67% (of a 150px image) */
@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
    #header { background: url(headerRatio1_5.png); background-size: 66.67%; }

}

/* Pixel ratio of 2. Background-size is 1/2 = 50% (of a 200px image) */
@media only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
    #header { background: url(headerRatio2.png); background-size: 50%; }

}

Existe-t-il de toute façon ou d'une extension de navigateur pour imiter appareil ratio de pixel?

InformationsquelleAutor Stephan Ahlf | 2013-05-05