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 - 153: Supported
  4. ✅ 154: Supported
  5. ✅ 155 - 157: Supported

Edge

  1. ◐ 12 - 18: Partial support
  2. ✅ 79 - 153: Supported
  3. ✅ 154: Supported

Safari

  1. ❌ 3.1 - 3.2: Not supported
  2. ◐ 4 - 15.6: Partial support
  3. ✅ 16.0 - 26.6: Supported
  4. ✅ 27: Supported
  5. ✅ 27.1 - TP: Supported

Firefox

  1. ❌ 2 - 3: Not supported
  2. ◐ 3.5 - 15: Partial support
  3. ◐ 16 - 61: Partial support
  4. ✅ 62 - 157: Supported
  5. ✅ 158: Supported
  6. ✅ 159 - 161: Supported

Opera

  1. ❌ 9: Not supported
  2. ◐ 9.5 - 12: Partial support
  3. ✅ 12.1: Supported
  4. ◐ 15 - 54: Partial support
  5. ✅ 55 - 134: Supported
  6. ✅ 135: Supported

IE

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

Chrome for Android

  1. ✅ 154: Supported

Safari on iOS

  1. ﹖ 3.2: Support unknown
  2. ◐ 4 - 15.8: Partial support
  3. ✅ 16.0 - 26.6: Supported
  4. ✅ 27.0: Supported
  5. ✅ 27.1 - 27.2: Supported

Samsung Internet

  1. ◐ 4 - 9.2: Partial support
  2. ✅ 10.1 - 29: Supported
  3. ✅ 30: 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. ✅ 154: Supported

Firefox for Android

  1. ✅ 157: 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