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 - 122: Supported
  4. 123: Supported
  5. 124 - 126: Supported

Edge

  1. 12 - 18: Partial support
  2. 79 - 122: Supported
  3. 123: Supported

Safari

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

Firefox

  1. 2 - 3: Not supported
  2. 3.5 - 15: Partial support
  3. 16 - 61: Partial support
  4. 62 - 123: Supported
  5. 124: Supported
  6. 125 - 127: Supported

Opera

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

IE

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

Chrome for Android

  1. 122: Supported

Safari on iOS

  1. 3.2: Support unknown
  2. 4 - 15.8: Partial support
  3. 16.0 - 17.3: Supported
  4. 17.4: Supported

Samsung Internet

  1. 4 - 9.2: Partial support
  2. 10.1 - 22: Supported
  3. 23: Supported

Opera Mini

  1. all: Partial support

Opera Mobile

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

UC Browser for Android

  1. 15.5: 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. 122: Supported

Firefox for Android

  1. 123: Supported

QQ Browser

  1. 14.9: Supported

Baidu Browser

  1. 13.52: Supported

KaiOS Browser

  1. 2.5: Supported
  2. 3: 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