Need to implement http://dev.w3.org/csswg/css3-mediaqueries/#resolution0 See FIXME in MediaQueryEvaluator.cpp: FIXME: following media features are not implemented: color_index, scan, resolution
This should do the right thing when printing too (report printer output resolution).
Also need to match what other browsers do when pageScale changes.
<rdar://problem/10829378>
If you want a quick initial test, http://meyerweb.com/eric/css/tests/mq-valueless.html includes valueless, iPhone 4S value (I think), and min/max queries. See test 11. If not, no harm done.
General comment: It's not clear to me why we would implement the resolution media query, considering how broken it is. Eric, that isn't the correct iPhone 4S value per the spec, because the CSS dpi unit is "physical pixels per CSS inch" and a CSS inch is 96 CSS pixels. So "resolution: 192dpi" should match on an iPhone 4S.
How does this relate to bug 85262?
(In reply to comment #6) > How does this relate to bug 85262? That is about a new CSS property based on the resolution of image resources. This is about a media query based on screen resolution.
Should we dupe this to https://bugs.webkit.org/show_bug.cgi?id=99077?
(In reply to comment #8) > Should we dupe this to https://bugs.webkit.org/show_bug.cgi?id=99077? It still need some special handling when printing as smfr pointed out, but maybe that is another bug
(In reply to comment #2) > Also need to match what other browsers do when pageScale changes. According to https://bugzilla.mozilla.org/show_bug.cgi?id=662061 zooming ( and I assume pageScale) should not affect the resolution values. It currently does in Firefox 16, at least full page zoom, though not text size zoom.
Support for the 'resolution' media query was added behind ENABLE(RESOLUTION_MEDIA_QUERY) via bug 99077.
Are there any plans to enable it by default any time soon? Once dppx support lands in IE (it's currently in preview built) all other major browser have added full support. http://dabblet.com/gist/7166616 https://status.modern.ie/dppxunitfortheresolutionmediaquery?term=dppx
MS Edge has shipped this (see http://caniuse.com/#feat=css-media-resolution ), so now only WebKit doesn't support this.
This bug was filed 8 years ago, even IE 9 supports this important media query. What happened here? 😕