Media Queries: resolution feature
Allows a media query to be set based on the device pixels used per CSS unit. While the standard uses `min`/`max-resolution` for this, some browsers support the older non-standard `device-pixel-ratio` media query.
Window.devicePixelRatio
Read-only property that returns the ratio of the (vertical) size of one physical pixel on the current display device to the size of one CSS pixel.
paintworkletglobalscope api: devicepixelratio
screendetailed api: devicepixelratio
window api: devicepixelratio
css at-rule: `@media`: `-moz-device-pixel-ratio` media feature
css at-rule: `@media`: `-webkit-device-pixel-ratio` media feature
css at-rule: `@media`: `-webkit-max-device-pixel-ratio` media feature
css at-rule: `@media`: `-webkit-min-device-pixel-ratio` media feature
9 results found.