object-fit.json 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. {
  2. "title":"CSS3 object-fit/object-position",
  3. "description":"Method of specifying how an object (image or video) should fit inside its box. object-fit options include \"contain\" (fit according to aspect ratio), \"fill\" (stretches object to fill) and \"cover\" (overflows box but maintains ratio), where object-position allows the object to be repositioned like background-image does.",
  4. "spec":"https://www.w3.org/TR/css3-images/",
  5. "status":"cr",
  6. "links":[
  7. {
  8. "url":"https://dev.opera.com/articles/view/css3-object-fit-object-position/",
  9. "title":"Dev.Opera article"
  10. },
  11. {
  12. "url":"https://www.webplatform.org/docs/css/properties/object-fit",
  13. "title":"WebPlatform Docs"
  14. },
  15. {
  16. "url":"https://github.com/bfred-it/object-fit-images/",
  17. "title":"object-fit-images Polyfill for IE & Edge"
  18. },
  19. {
  20. "url":"https://developer.mozilla.org//docs/Web/CSS/object-fit",
  21. "title":"MDN"
  22. }
  23. ],
  24. "bugs":[
  25. ],
  26. "categories":[
  27. "CSS3"
  28. ],
  29. "stats":{
  30. "ie":{
  31. "5.5":"n",
  32. "6":"n",
  33. "7":"n",
  34. "8":"n",
  35. "9":"n",
  36. "10":"n",
  37. "11":"n"
  38. },
  39. "edge":{
  40. "12":"n",
  41. "13":"n",
  42. "14":"n",
  43. "15":"n",
  44. "16":"a #2",
  45. "17":"a #2",
  46. "18":"a #2"
  47. },
  48. "firefox":{
  49. "2":"n",
  50. "3":"n",
  51. "3.5":"n",
  52. "3.6":"n",
  53. "4":"n",
  54. "5":"n",
  55. "6":"n",
  56. "7":"n",
  57. "8":"n",
  58. "9":"n",
  59. "10":"n",
  60. "11":"n",
  61. "12":"n",
  62. "13":"n",
  63. "14":"n",
  64. "15":"n",
  65. "16":"n",
  66. "17":"n",
  67. "18":"n",
  68. "19":"n",
  69. "20":"n",
  70. "21":"n",
  71. "22":"n",
  72. "23":"n",
  73. "24":"n",
  74. "25":"n",
  75. "26":"n",
  76. "27":"n",
  77. "28":"n",
  78. "29":"n",
  79. "30":"n",
  80. "31":"n",
  81. "32":"n",
  82. "33":"n",
  83. "34":"n",
  84. "35":"n",
  85. "36":"y",
  86. "37":"y",
  87. "38":"y",
  88. "39":"y",
  89. "40":"y",
  90. "41":"y",
  91. "42":"y",
  92. "43":"y",
  93. "44":"y",
  94. "45":"y",
  95. "46":"y",
  96. "47":"y",
  97. "48":"y",
  98. "49":"y",
  99. "50":"y",
  100. "51":"y",
  101. "52":"y",
  102. "53":"y",
  103. "54":"y",
  104. "55":"y",
  105. "56":"y",
  106. "57":"y",
  107. "58":"y",
  108. "59":"y",
  109. "60":"y",
  110. "61":"y",
  111. "62":"y",
  112. "63":"y",
  113. "64":"y",
  114. "65":"y",
  115. "66":"y",
  116. "67":"y",
  117. "68":"y"
  118. },
  119. "chrome":{
  120. "4":"n",
  121. "5":"n",
  122. "6":"n",
  123. "7":"n",
  124. "8":"n",
  125. "9":"n",
  126. "10":"n",
  127. "11":"n",
  128. "12":"n",
  129. "13":"n",
  130. "14":"n",
  131. "15":"n",
  132. "16":"n",
  133. "17":"n",
  134. "18":"n",
  135. "19":"n",
  136. "20":"n",
  137. "21":"n",
  138. "22":"n",
  139. "23":"n",
  140. "24":"n",
  141. "25":"n",
  142. "26":"n",
  143. "27":"n",
  144. "28":"n",
  145. "29":"n",
  146. "30":"n",
  147. "31":"y",
  148. "32":"y",
  149. "33":"y",
  150. "34":"y",
  151. "35":"y",
  152. "36":"y",
  153. "37":"y",
  154. "38":"y",
  155. "39":"y",
  156. "40":"y",
  157. "41":"y",
  158. "42":"y",
  159. "43":"y",
  160. "44":"y",
  161. "45":"y",
  162. "46":"y",
  163. "47":"y",
  164. "48":"y",
  165. "49":"y",
  166. "50":"y",
  167. "51":"y",
  168. "52":"y",
  169. "53":"y",
  170. "54":"y",
  171. "55":"y",
  172. "56":"y",
  173. "57":"y",
  174. "58":"y",
  175. "59":"y",
  176. "60":"y",
  177. "61":"y",
  178. "62":"y",
  179. "63":"y",
  180. "64":"y",
  181. "65":"y",
  182. "66":"y",
  183. "67":"y",
  184. "68":"y",
  185. "69":"y",
  186. "70":"y",
  187. "71":"y",
  188. "72":"y",
  189. "73":"y",
  190. "74":"y",
  191. "75":"y",
  192. "76":"y"
  193. },
  194. "safari":{
  195. "3.1":"n",
  196. "3.2":"n",
  197. "4":"n",
  198. "5":"n",
  199. "5.1":"n",
  200. "6":"n",
  201. "6.1":"n",
  202. "7":"n",
  203. "7.1":"a #1",
  204. "8":"a #1",
  205. "9":"a #1",
  206. "9.1":"a #1",
  207. "10":"y",
  208. "10.1":"y",
  209. "11":"y",
  210. "11.1":"y",
  211. "12":"y",
  212. "12.1":"y",
  213. "TP":"y"
  214. },
  215. "opera":{
  216. "9":"n",
  217. "9.5-9.6":"n",
  218. "10.0-10.1":"n",
  219. "10.5":"n",
  220. "10.6":"y x",
  221. "11":"y x",
  222. "11.1":"y x",
  223. "11.5":"y x",
  224. "11.6":"y x",
  225. "12":"y x",
  226. "12.1":"y x",
  227. "15":"n",
  228. "16":"n",
  229. "17":"n",
  230. "18":"n",
  231. "19":"y",
  232. "20":"y",
  233. "21":"y",
  234. "22":"y",
  235. "23":"y",
  236. "24":"y",
  237. "25":"y",
  238. "26":"y",
  239. "27":"y",
  240. "28":"y",
  241. "29":"y",
  242. "30":"y",
  243. "31":"y",
  244. "32":"y",
  245. "33":"y",
  246. "34":"y",
  247. "35":"y",
  248. "36":"y",
  249. "37":"y",
  250. "38":"y",
  251. "39":"y",
  252. "40":"y",
  253. "41":"y",
  254. "42":"y",
  255. "43":"y",
  256. "44":"y",
  257. "45":"y",
  258. "46":"y",
  259. "47":"y",
  260. "48":"y",
  261. "49":"y",
  262. "50":"y",
  263. "51":"y",
  264. "52":"y",
  265. "53":"y",
  266. "54":"y",
  267. "55":"y",
  268. "56":"y",
  269. "57":"y",
  270. "58":"y"
  271. },
  272. "ios_saf":{
  273. "3.2":"n",
  274. "4.0-4.1":"n",
  275. "4.2-4.3":"n",
  276. "5.0-5.1":"n",
  277. "6.0-6.1":"n",
  278. "7.0-7.1":"n",
  279. "8":"a #1",
  280. "8.1-8.4":"a #1",
  281. "9.0-9.2":"a #1",
  282. "9.3":"a #1",
  283. "10.0-10.2":"y",
  284. "10.3":"y",
  285. "11.0-11.2":"y",
  286. "11.3-11.4":"y",
  287. "12.0-12.1":"y",
  288. "12.2":"y"
  289. },
  290. "op_mini":{
  291. "all":"y x"
  292. },
  293. "android":{
  294. "2.1":"n",
  295. "2.2":"n",
  296. "2.3":"n",
  297. "3":"n",
  298. "4":"n",
  299. "4.1":"n",
  300. "4.2-4.3":"n",
  301. "4.4":"n",
  302. "4.4.3-4.4.4":"y",
  303. "67":"y"
  304. },
  305. "bb":{
  306. "7":"n",
  307. "10":"n"
  308. },
  309. "op_mob":{
  310. "10":"n",
  311. "11":"y x",
  312. "11.1":"y x",
  313. "11.5":"y x",
  314. "12":"y x",
  315. "12.1":"y x",
  316. "46":"y"
  317. },
  318. "and_chr":{
  319. "71":"y"
  320. },
  321. "and_ff":{
  322. "64":"y"
  323. },
  324. "ie_mob":{
  325. "10":"n",
  326. "11":"n"
  327. },
  328. "and_uc":{
  329. "11.8":"y"
  330. },
  331. "samsung":{
  332. "4":"y",
  333. "5.0-5.4":"y",
  334. "6.2-6.4":"y",
  335. "7.2-7.4":"y",
  336. "8.2":"y"
  337. },
  338. "and_qq":{
  339. "1.2":"y"
  340. },
  341. "baidu":{
  342. "7.12":"y"
  343. }
  344. },
  345. "notes":"",
  346. "notes_by_num":{
  347. "1":"Partial support in Safari refers to support for `object-fit` but not `object-position`.",
  348. "2":"Partial support in Edge refers to `object-fit` only supporting `<img>` ([see this comment](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/13603873/#comment-0))"
  349. },
  350. "usage_perc_y":91.55,
  351. "usage_perc_a":2.8,
  352. "ucprefix":false,
  353. "parent":"",
  354. "keywords":"objectfit,objectposition",
  355. "ie_id":"objectfitandobjectpositionimages,objectfitandobjectpositionvideocanvasetc",
  356. "chrome_id":"5302669702856704",
  357. "firefox_id":"",
  358. "webkit_id":"",
  359. "shown":true
  360. }