css-media-resolution.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. {
  2. "title":"Media Queries: resolution feature",
  3. "description":"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.",
  4. "spec":"http://www.w3.org/TR/css3-mediaqueries/#resolution",
  5. "status":"rec",
  6. "links":[
  7. {
  8. "url":"http://www.w3.org/blog/CSS/2012/06/14/unprefix-webkit-device-pixel-ratio/",
  9. "title":"How to unprefix -webkit-device-pixel-ratio"
  10. },
  11. {
  12. "url":"https://bugs.webkit.org/show_bug.cgi?id=78087",
  13. "title":"WebKit Bug 78087: Implement the 'resolution' media query"
  14. },
  15. {
  16. "url":"https://compat.spec.whatwg.org/#css-media-queries-webkit-device-pixel-ratio",
  17. "title":"WHATWG Compatibility Standard: -webkit-device-pixel-ratio"
  18. }
  19. ],
  20. "bugs":[
  21. {
  22. "description":"Microsoft Edge has a bug where `min-resolution` less than `1dpcm` [is ignored](http://jsfiddle.net/behmjd5t/)."
  23. }
  24. ],
  25. "categories":[
  26. "CSS",
  27. "CSS3"
  28. ],
  29. "stats":{
  30. "ie":{
  31. "5.5":"n",
  32. "6":"n",
  33. "7":"n",
  34. "8":"n",
  35. "9":"a #1",
  36. "10":"a #1",
  37. "11":"a #1"
  38. },
  39. "edge":{
  40. "12":"y",
  41. "13":"y",
  42. "14":"y"
  43. },
  44. "firefox":{
  45. "2":"n",
  46. "3":"n",
  47. "3.5":"a #2",
  48. "3.6":"a #2",
  49. "4":"a #2",
  50. "5":"a #2",
  51. "6":"a #2",
  52. "7":"a #2",
  53. "8":"a #2",
  54. "9":"a #2",
  55. "10":"a #2",
  56. "11":"a #2",
  57. "12":"a #2",
  58. "13":"a #2",
  59. "14":"a #2",
  60. "15":"a #2",
  61. "16":"y",
  62. "17":"y",
  63. "18":"y",
  64. "19":"y",
  65. "20":"y",
  66. "21":"y",
  67. "22":"y",
  68. "23":"y",
  69. "24":"y",
  70. "25":"y",
  71. "26":"y",
  72. "27":"y",
  73. "28":"y",
  74. "29":"y",
  75. "30":"y",
  76. "31":"y",
  77. "32":"y",
  78. "33":"y",
  79. "34":"y",
  80. "35":"y",
  81. "36":"y",
  82. "37":"y",
  83. "38":"y",
  84. "39":"y",
  85. "40":"y",
  86. "41":"y",
  87. "42":"y",
  88. "43":"y",
  89. "44":"y",
  90. "45":"y",
  91. "46":"y",
  92. "47":"y",
  93. "48":"y",
  94. "49":"y",
  95. "50":"y",
  96. "51":"y",
  97. "52":"y",
  98. "53":"y"
  99. },
  100. "chrome":{
  101. "4":"a x #3",
  102. "5":"a x #3",
  103. "6":"a x #3",
  104. "7":"a x #3",
  105. "8":"a x #3",
  106. "9":"a x #3",
  107. "10":"a x #3",
  108. "11":"a x #3",
  109. "12":"a x #3",
  110. "13":"a x #3",
  111. "14":"a x #3",
  112. "15":"a x #3",
  113. "16":"a x #3",
  114. "17":"a x #3",
  115. "18":"a x #3",
  116. "19":"a x #3",
  117. "20":"a x #3",
  118. "21":"a x #3",
  119. "22":"a x #3",
  120. "23":"a x #3",
  121. "24":"a x #3",
  122. "25":"a x #3",
  123. "26":"a x #3",
  124. "27":"a x #3",
  125. "28":"a x #3",
  126. "29":"y",
  127. "30":"y",
  128. "31":"y",
  129. "32":"y",
  130. "33":"y",
  131. "34":"y",
  132. "35":"y",
  133. "36":"y",
  134. "37":"y",
  135. "38":"y",
  136. "39":"y",
  137. "40":"y",
  138. "41":"y",
  139. "42":"y",
  140. "43":"y",
  141. "44":"y",
  142. "45":"y",
  143. "46":"y",
  144. "47":"y",
  145. "48":"y",
  146. "49":"y",
  147. "50":"y",
  148. "51":"y",
  149. "52":"y",
  150. "53":"y",
  151. "54":"y",
  152. "55":"y",
  153. "56":"y",
  154. "57":"y"
  155. },
  156. "safari":{
  157. "3.1":"n",
  158. "3.2":"n",
  159. "4":"a x #3",
  160. "5":"a x #3",
  161. "5.1":"a x #3",
  162. "6":"a x #3",
  163. "6.1":"a x #3",
  164. "7":"a x #3",
  165. "7.1":"a x #3",
  166. "8":"a x #3",
  167. "9":"a x #3",
  168. "9.1":"a x #3",
  169. "10":"a x #3",
  170. "TP":"a x #3"
  171. },
  172. "opera":{
  173. "9":"n",
  174. "9.5-9.6":"a x #3",
  175. "10.0-10.1":"a x #3",
  176. "10.5":"a x #3",
  177. "10.6":"a x #3",
  178. "11":"a x #3",
  179. "11.1":"a x #3",
  180. "11.5":"a x #3",
  181. "11.6":"a x #3",
  182. "12":"a x #3",
  183. "12.1":"y",
  184. "15":"y",
  185. "16":"y",
  186. "17":"y",
  187. "18":"y",
  188. "19":"y",
  189. "20":"y",
  190. "21":"y",
  191. "22":"y",
  192. "23":"y",
  193. "24":"y",
  194. "25":"y",
  195. "26":"y",
  196. "27":"y",
  197. "28":"y",
  198. "29":"y",
  199. "30":"y",
  200. "31":"y",
  201. "32":"y",
  202. "33":"y",
  203. "34":"y",
  204. "35":"y",
  205. "36":"y",
  206. "37":"y",
  207. "38":"y",
  208. "39":"y",
  209. "40":"y",
  210. "41":"y",
  211. "42":"y",
  212. "43":"y"
  213. },
  214. "ios_saf":{
  215. "3.2":"u",
  216. "4.0-4.1":"a x #3",
  217. "4.2-4.3":"a x #3",
  218. "5.0-5.1":"a x #3",
  219. "6.0-6.1":"a x #3",
  220. "7.0-7.1":"a x #3",
  221. "8":"a x #3",
  222. "8.1-8.4":"a x #3",
  223. "9.0-9.2":"a x #3",
  224. "9.3":"a x #3",
  225. "10-10.1":"a x #3"
  226. },
  227. "op_mini":{
  228. "all":"a #1"
  229. },
  230. "android":{
  231. "2.1":"u",
  232. "2.2":"u",
  233. "2.3":"a x #3",
  234. "3":"a x #3",
  235. "4":"a x #3",
  236. "4.1":"a x #3",
  237. "4.2-4.3":"a x #3",
  238. "4.4":"y",
  239. "4.4.3-4.4.4":"y",
  240. "53":"y"
  241. },
  242. "bb":{
  243. "7":"a x #3",
  244. "10":"a x #3"
  245. },
  246. "op_mob":{
  247. "10":"a x #3",
  248. "11":"a x #3",
  249. "11.1":"a x #3",
  250. "11.5":"a x #3",
  251. "12":"a x #3",
  252. "12.1":"y",
  253. "37":"y"
  254. },
  255. "and_chr":{
  256. "54":"y"
  257. },
  258. "and_ff":{
  259. "50":"y"
  260. },
  261. "ie_mob":{
  262. "10":"a #1",
  263. "11":"a #1"
  264. },
  265. "and_uc":{
  266. "11":"a x #3"
  267. },
  268. "samsung":{
  269. "4":"y"
  270. }
  271. },
  272. "notes":"",
  273. "notes_by_num":{
  274. "1":"Supports the `dpi` unit, but does not support `dppx` or `dpcm` units.",
  275. "2":"Firefox before 16 supports only `dpi` unit, but you can set `2dppx` per `min--moz-device-pixel-ratio: 2`",
  276. "3":"Supports the non-standard `min`/`max-device-pixel-ratio`"
  277. },
  278. "usage_perc_y":66.93,
  279. "usage_perc_a":30.69,
  280. "ucprefix":false,
  281. "parent":"css-mediaqueries",
  282. "keywords":"@media,device-pixel-ratio,resolution,dppx,dpcm,dpi",
  283. "ie_id":"mediaqueriesresolutionfeature,dppxunitfortheresolutionmediaquery",
  284. "chrome_id":"5944509615570944",
  285. "firefox_id":"",
  286. "webkit_id":"",
  287. "shown":true
  288. }