css-media-resolution.json 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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. "15":"y",
  44. "16":"y"
  45. },
  46. "firefox":{
  47. "2":"n",
  48. "3":"n",
  49. "3.5":"a #2",
  50. "3.6":"a #2",
  51. "4":"a #2",
  52. "5":"a #2",
  53. "6":"a #2",
  54. "7":"a #2",
  55. "8":"a #2",
  56. "9":"a #2",
  57. "10":"a #2",
  58. "11":"a #2",
  59. "12":"a #2",
  60. "13":"a #2",
  61. "14":"a #2",
  62. "15":"a #2",
  63. "16":"y",
  64. "17":"y",
  65. "18":"y",
  66. "19":"y",
  67. "20":"y",
  68. "21":"y",
  69. "22":"y",
  70. "23":"y",
  71. "24":"y",
  72. "25":"y",
  73. "26":"y",
  74. "27":"y",
  75. "28":"y",
  76. "29":"y",
  77. "30":"y",
  78. "31":"y",
  79. "32":"y",
  80. "33":"y",
  81. "34":"y",
  82. "35":"y",
  83. "36":"y",
  84. "37":"y",
  85. "38":"y",
  86. "39":"y",
  87. "40":"y",
  88. "41":"y",
  89. "42":"y",
  90. "43":"y",
  91. "44":"y",
  92. "45":"y",
  93. "46":"y",
  94. "47":"y",
  95. "48":"y",
  96. "49":"y",
  97. "50":"y",
  98. "51":"y",
  99. "52":"y",
  100. "53":"y",
  101. "54":"y",
  102. "55":"y",
  103. "56":"y",
  104. "57":"y"
  105. },
  106. "chrome":{
  107. "4":"a x #3",
  108. "5":"a x #3",
  109. "6":"a x #3",
  110. "7":"a x #3",
  111. "8":"a x #3",
  112. "9":"a x #3",
  113. "10":"a x #3",
  114. "11":"a x #3",
  115. "12":"a x #3",
  116. "13":"a x #3",
  117. "14":"a x #3",
  118. "15":"a x #3",
  119. "16":"a x #3",
  120. "17":"a x #3",
  121. "18":"a x #3",
  122. "19":"a x #3",
  123. "20":"a x #3",
  124. "21":"a x #3",
  125. "22":"a x #3",
  126. "23":"a x #3",
  127. "24":"a x #3",
  128. "25":"a x #3",
  129. "26":"a x #3",
  130. "27":"a x #3",
  131. "28":"a x #3",
  132. "29":"y",
  133. "30":"y",
  134. "31":"y",
  135. "32":"y",
  136. "33":"y",
  137. "34":"y",
  138. "35":"y",
  139. "36":"y",
  140. "37":"y",
  141. "38":"y",
  142. "39":"y",
  143. "40":"y",
  144. "41":"y",
  145. "42":"y",
  146. "43":"y",
  147. "44":"y",
  148. "45":"y",
  149. "46":"y",
  150. "47":"y",
  151. "48":"y",
  152. "49":"y",
  153. "50":"y",
  154. "51":"y",
  155. "52":"y",
  156. "53":"y",
  157. "54":"y",
  158. "55":"y",
  159. "56":"y",
  160. "57":"y",
  161. "58":"y",
  162. "59":"y",
  163. "60":"y",
  164. "61":"y",
  165. "62":"y",
  166. "63":"y"
  167. },
  168. "safari":{
  169. "3.1":"n",
  170. "3.2":"n",
  171. "4":"a x #3",
  172. "5":"a x #3",
  173. "5.1":"a x #3",
  174. "6":"a x #3",
  175. "6.1":"a x #3",
  176. "7":"a x #3",
  177. "7.1":"a x #3",
  178. "8":"a x #3",
  179. "9":"a x #3",
  180. "9.1":"a x #3",
  181. "10":"a x #3",
  182. "10.1":"a x #3",
  183. "11":"a x #3",
  184. "TP":"a x #3"
  185. },
  186. "opera":{
  187. "9":"n",
  188. "9.5-9.6":"a x #3",
  189. "10.0-10.1":"a x #3",
  190. "10.5":"a x #3",
  191. "10.6":"a x #3",
  192. "11":"a x #3",
  193. "11.1":"a x #3",
  194. "11.5":"a x #3",
  195. "11.6":"a x #3",
  196. "12":"a x #3",
  197. "12.1":"y",
  198. "15":"y",
  199. "16":"y",
  200. "17":"y",
  201. "18":"y",
  202. "19":"y",
  203. "20":"y",
  204. "21":"y",
  205. "22":"y",
  206. "23":"y",
  207. "24":"y",
  208. "25":"y",
  209. "26":"y",
  210. "27":"y",
  211. "28":"y",
  212. "29":"y",
  213. "30":"y",
  214. "31":"y",
  215. "32":"y",
  216. "33":"y",
  217. "34":"y",
  218. "35":"y",
  219. "36":"y",
  220. "37":"y",
  221. "38":"y",
  222. "39":"y",
  223. "40":"y",
  224. "41":"y",
  225. "42":"y",
  226. "43":"y",
  227. "44":"y",
  228. "45":"y",
  229. "46":"y",
  230. "47":"y",
  231. "48":"y"
  232. },
  233. "ios_saf":{
  234. "3.2":"u",
  235. "4.0-4.1":"a x #3",
  236. "4.2-4.3":"a x #3",
  237. "5.0-5.1":"a x #3",
  238. "6.0-6.1":"a x #3",
  239. "7.0-7.1":"a x #3",
  240. "8":"a x #3",
  241. "8.1-8.4":"a x #3",
  242. "9.0-9.2":"a x #3",
  243. "9.3":"a x #3",
  244. "10.0-10.2":"a x #3",
  245. "10.3":"a x #3",
  246. "11":"a x #3"
  247. },
  248. "op_mini":{
  249. "all":"a #1"
  250. },
  251. "android":{
  252. "2.1":"u",
  253. "2.2":"u",
  254. "2.3":"a x #3",
  255. "3":"a x #3",
  256. "4":"a x #3",
  257. "4.1":"a x #3",
  258. "4.2-4.3":"a x #3",
  259. "4.4":"y",
  260. "4.4.3-4.4.4":"y",
  261. "56":"y"
  262. },
  263. "bb":{
  264. "7":"a x #3",
  265. "10":"a x #3"
  266. },
  267. "op_mob":{
  268. "10":"a x #3",
  269. "11":"a x #3",
  270. "11.1":"a x #3",
  271. "11.5":"a x #3",
  272. "12":"a x #3",
  273. "12.1":"y",
  274. "37":"y"
  275. },
  276. "and_chr":{
  277. "59":"y"
  278. },
  279. "and_ff":{
  280. "54":"y"
  281. },
  282. "ie_mob":{
  283. "10":"a #1",
  284. "11":"a #1"
  285. },
  286. "and_uc":{
  287. "11.4":"y"
  288. },
  289. "samsung":{
  290. "4":"y",
  291. "5":"y"
  292. },
  293. "and_qq":{
  294. "1.2":"y"
  295. },
  296. "baidu":{
  297. "7.12":"y"
  298. }
  299. },
  300. "notes":"",
  301. "notes_by_num":{
  302. "1":"Supports the `dpi` unit, but does not support `dppx` or `dpcm` units.",
  303. "2":"Firefox before 16 supports only `dpi` unit, but you can set `2dppx` per `min--moz-device-pixel-ratio: 2`",
  304. "3":"Supports the non-standard `min`/`max-device-pixel-ratio`"
  305. },
  306. "usage_perc_y":77.3,
  307. "usage_perc_a":20.11,
  308. "ucprefix":false,
  309. "parent":"css-mediaqueries",
  310. "keywords":"@media,device-pixel-ratio,resolution,dppx,dpcm,dpi",
  311. "ie_id":"mediaqueriesresolutionfeature,dppxunitfortheresolutionmediaquery",
  312. "chrome_id":"5944509615570944",
  313. "firefox_id":"",
  314. "webkit_id":"",
  315. "shown":true
  316. }