Media Queries: resolution feature

- CR

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.

Chrome

  1. 4 - 28: Partial support
  2. 29 - 67: Partial support
  3. 68 - 107: Supported
  4. 108: Supported
  5. 109 - 111: Supported

Edge

  1. 12 - 18: Partial support
  2. 79 - 106: Supported
  3. 107: Supported

Safari

  1. 3.1 - 3.2: Not supported
  2. 4 - 15.6: Partial support
  3. 16.0: Supported
  4. 16.1: Supported
  5. 16.2 - TP: Supported

Firefox

  1. 2 - 3: Not supported
  2. 3.5 - 15: Partial support
  3. 16 - 61: Partial support
  4. 62 - 106: Supported
  5. 107: Supported
  6. 108 - 109: Supported

Opera

  1. 9: Not supported
  2. 9.5 - 12: Partial support
  3. 12.1: Supported
  4. 15 - 54: Partial support
  5. 55 - 91: Supported
  6. 92: Supported

IE

  1. 5.5 - 8: Not supported
  2. 9 - 10: Partial support
  3. 11: Partial support

Chrome for Android

  1. 107: Supported

Safari on iOS

  1. 3.2: Support unknown
  2. 4 - 15.6: Partial support
  3. 16.0: Supported
  4. 16.1: Supported

Samsung Internet

  1. 4 - 9.2: Partial support
  2. 10.1 - 18.0: Supported
  3. 19.0: Supported

Opera Mini

  1. all: Partial support

Opera Mobile

  1. 10 - 12: Partial support
  2. 12.1: Supported
  3. 72: Supported

UC Browser for Android

  1. 13.4: Supported

Android Browser

  1. 2.1 - 2.2: Support unknown
  2. 2.3 - 4.3: Partial support
  3. 4.4 - 4.4.4: Partial support
  4. 107: Supported

Firefox for Android

  1. 106: Supported

QQ Browser

  1. 13.1: Supported

Baidu Browser

  1. 13.18: Supported

KaiOS Browser

  1. 2.5: Supported
Resources:
WebKit Bug 78087: Implement the 'resolution' media query
Firefox support 'x' as a resolution unit.
Chrome support 'x' as a resolution unit.
WHATWG Compatibility Standard: -webkit-device-pixel-ratio
MDN Web Docs - CSS @media resolution
CSS Values and Units Module Level 4 add the `x` unit as an alias for `dppx`.
How to unprefix -webkit-device-pixel-ratio