Media Queries: resolution feature
- CRAllows 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
- ◐ 4 - 28: Partial support
- ◐ 29 - 67: Partial support
- ✅ 68 - 130: Supported
- ✅ 131: Supported
- ✅ 132 - 134: Supported
Edge
- ◐ 12 - 18: Partial support
- ✅ 79 - 130: Supported
- ✅ 131: Supported
Safari
- ❌ 3.1 - 3.2: Not supported
- ◐ 4 - 15.6: Partial support
- ✅ 16.0 - 18.0: Supported
- ✅ 18.1: Supported
- ✅ 18.2 - TP: Supported
Firefox
- ❌ 2 - 3: Not supported
- ◐ 3.5 - 15: Partial support
- ◐ 16 - 61: Partial support
- ✅ 62 - 132: Supported
- ✅ 133: Supported
- ✅ 134 - 136: Supported
Opera
- ❌ 9: Not supported
- ◐ 9.5 - 12: Partial support
- ✅ 12.1: Supported
- ◐ 15 - 54: Partial support
- ✅ 55 - 113: Supported
- ✅ 114: Supported
IE
- ❌ 5.5 - 8: Not supported
- ◐ 9 - 10: Partial support
- ◐ 11: Partial support
Chrome for Android
- ✅ 131: Supported
Safari on iOS
- ﹖ 3.2: Support unknown
- ◐ 4 - 15.8: Partial support
- ✅ 16.0 - 18.0: Supported
- ✅ 18.1: Supported
- ✅ 18.2: Supported
Samsung Internet
- ◐ 4 - 9.2: Partial support
- ✅ 10.1 - 25: Supported
- ✅ 26: Supported
Opera Mini
- ◐ all: Partial support
Opera Mobile
- ◐ 10 - 12: Partial support
- ✅ 12.1: Supported
- ✅ 80: Supported
UC Browser for Android
- ✅ 15.5: Supported
Android Browser
- ﹖ 2.1 - 2.2: Support unknown
- ◐ 2.3 - 4.3: Partial support
- ◐ 4.4 - 4.4.4: Partial support
- ✅ 131: Supported
Firefox for Android
- ✅ 132: Supported
QQ Browser
- ✅ 14.9: Supported
Baidu Browser
- ✅ 13.52: Supported
KaiOS Browser
- ✅ 2.5: Supported
- ✅ 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