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 - 130: Supported
  4. 131: Supported
  5. 132 - 134: Supported

Edge

  1. 12 - 18: Partial support
  2. 79 - 130: Supported
  3. 131: Supported

Safari

  1. 3.1 - 3.2: Not supported
  2. 4 - 15.6: Partial support
  3. 16.0 - 18.0: Supported
  4. 18.1: Supported
  5. 18.2 - TP: Supported

Firefox

  1. 2 - 3: Not supported
  2. 3.5 - 15: Partial support
  3. 16 - 61: Partial support
  4. 62 - 131: Supported
  5. 132: Supported
  6. 133 - 135: Supported

Opera

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

IE

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

Chrome for Android

  1. 131: Supported

Safari on iOS

  1. 3.2: Support unknown
  2. 4 - 15.8: Partial support
  3. 16.0 - 18.0: Supported
  4. 18.1: Supported
  5. 18.2: Supported

Samsung Internet

  1. 4 - 9.2: Partial support
  2. 10.1 - 25: Supported
  3. 26: 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. 131: Supported

Firefox for Android

  1. 132: 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