css-media-resolution.json 5.8 KB

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