canvas.json 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. {
  2. "title":"Canvas (basic support)",
  3. "description":"Method of generating fast, dynamic graphics using JavaScript.",
  4. "spec":"https://html.spec.whatwg.org/multipage/scripting.html#the-canvas-element",
  5. "status":"ls",
  6. "links":[
  7. {
  8. "url":"https://developer.mozilla.org/en/Canvas_tutorial",
  9. "title":"Tutorial by Mozilla"
  10. },
  11. {
  12. "url":"http://glimr.rubyforge.org/cake/canvas.html",
  13. "title":"Animation kit"
  14. },
  15. {
  16. "url":"https://diveintohtml5.info/canvas.html",
  17. "title":"Another tutorial"
  18. },
  19. {
  20. "url":"https://github.com/arv/ExplorerCanvas",
  21. "title":"Implementation for Internet Explorer"
  22. },
  23. {
  24. "url":"https://raw.github.com/phiggins42/has.js/master/detect/graphics.js#canvas",
  25. "title":"has.js test"
  26. },
  27. {
  28. "url":"https://skilled.co/html-canvas/",
  29. "title":"Canvas Tutorial & Cheat Sheet"
  30. },
  31. {
  32. "url":"https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API",
  33. "title":"MDN Web Docs - Canvas API"
  34. }
  35. ],
  36. "bugs":[
  37. {
  38. "description":"The Android browser does not support clipping on HTML5 canvas. See the bug filed here: https://issuetracker.google.com/issues/36934492"
  39. },
  40. {
  41. "description":"Older versions of iOS did not support video as a source for the canvas `drawImage()`, though it does appear to work as of iOS 8 [test case](https://jsfiddle.net/zL8KC/)"
  42. },
  43. {
  44. "description":"Limits of `toDataURL()` for iOS:\r\n- The maximum size for decoded GIF, PNG, and TIFF images is 3 megapixels for devices with less than 256 MB RAM and 5 megapixels for devices with greater or equal than 256 MB RAM.\r\n- The maximum size for a canvas element is 3 megapixels for devices with less than 256 MB RAM and 5 megapixels for devices with greater or equal than 256 MB RAM.\r\n- JavaScript execution time is limited to 10 seconds for each top-level entry point."
  45. },
  46. {
  47. "description":"In IE 11 `canvas.toDataURL()` does not work if the canvas has images with data URI sources [see bug](https://connect.microsoft.com/IE/Feedback/Details/828416)"
  48. },
  49. {
  50. "description":"IE 10 canvas doesn't support `setLineDash` or `lineDashOffset` [see bug](https://social.msdn.microsoft.com/Forums/en-US/85007e72-90ad-4bd9-affd-9a24702219e6/canvasrenderingcontext2dsetlinedash-and-linedashoffset-missing?forum=winappswithhtml5) "
  51. },
  52. {
  53. "description":"IE and Edge does not support globalAlpha for drawImage of SVG graphics. [see bug](https://connect.microsoft.com/IE/feedback/details/1847897/globalalpha-ignored-when-drawing-svg-to-canvas) [see testcase](https://jsfiddle.net/p7b0wmcu/)"
  54. }
  55. ],
  56. "categories":[
  57. "Canvas",
  58. "HTML5"
  59. ],
  60. "stats":{
  61. "ie":{
  62. "5.5":"n",
  63. "6":"p",
  64. "7":"p",
  65. "8":"p",
  66. "9":"y",
  67. "10":"y",
  68. "11":"y"
  69. },
  70. "edge":{
  71. "12":"y",
  72. "13":"y",
  73. "14":"y",
  74. "15":"y",
  75. "16":"y",
  76. "17":"y",
  77. "18":"y",
  78. "79":"y",
  79. "80":"y",
  80. "81":"y",
  81. "83":"y",
  82. "84":"y",
  83. "85":"y",
  84. "86":"y"
  85. },
  86. "firefox":{
  87. "2":"a #1",
  88. "3":"a #1",
  89. "3.5":"a #1",
  90. "3.6":"y",
  91. "4":"y",
  92. "5":"y",
  93. "6":"y",
  94. "7":"y",
  95. "8":"y",
  96. "9":"y",
  97. "10":"y",
  98. "11":"y",
  99. "12":"y",
  100. "13":"y",
  101. "14":"y",
  102. "15":"y",
  103. "16":"y",
  104. "17":"y",
  105. "18":"y",
  106. "19":"y",
  107. "20":"y",
  108. "21":"y",
  109. "22":"y",
  110. "23":"y",
  111. "24":"y",
  112. "25":"y",
  113. "26":"y",
  114. "27":"y",
  115. "28":"y",
  116. "29":"y",
  117. "30":"y",
  118. "31":"y",
  119. "32":"y",
  120. "33":"y",
  121. "34":"y",
  122. "35":"y",
  123. "36":"y",
  124. "37":"y",
  125. "38":"y",
  126. "39":"y",
  127. "40":"y",
  128. "41":"y",
  129. "42":"y",
  130. "43":"y",
  131. "44":"y",
  132. "45":"y",
  133. "46":"y",
  134. "47":"y",
  135. "48":"y",
  136. "49":"y",
  137. "50":"y",
  138. "51":"y",
  139. "52":"y",
  140. "53":"y",
  141. "54":"y",
  142. "55":"y",
  143. "56":"y",
  144. "57":"y",
  145. "58":"y",
  146. "59":"y",
  147. "60":"y",
  148. "61":"y",
  149. "62":"y",
  150. "63":"y",
  151. "64":"y",
  152. "65":"y",
  153. "66":"y",
  154. "67":"y",
  155. "68":"y",
  156. "69":"y",
  157. "70":"y",
  158. "71":"y",
  159. "72":"y",
  160. "73":"y",
  161. "74":"y",
  162. "75":"y",
  163. "76":"y",
  164. "77":"y",
  165. "78":"y",
  166. "79":"y",
  167. "80":"y",
  168. "81":"y",
  169. "82":"y",
  170. "83":"y"
  171. },
  172. "chrome":{
  173. "4":"y",
  174. "5":"y",
  175. "6":"y",
  176. "7":"y",
  177. "8":"y",
  178. "9":"y",
  179. "10":"y",
  180. "11":"y",
  181. "12":"y",
  182. "13":"y",
  183. "14":"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. "44":"y",
  214. "45":"y",
  215. "46":"y",
  216. "47":"y",
  217. "48":"y",
  218. "49":"y",
  219. "50":"y",
  220. "51":"y",
  221. "52":"y",
  222. "53":"y",
  223. "54":"y",
  224. "55":"y",
  225. "56":"y",
  226. "57":"y",
  227. "58":"y",
  228. "59":"y",
  229. "60":"y",
  230. "61":"y",
  231. "62":"y",
  232. "63":"y",
  233. "64":"y",
  234. "65":"y",
  235. "66":"y",
  236. "67":"y",
  237. "68":"y",
  238. "69":"y",
  239. "70":"y",
  240. "71":"y",
  241. "72":"y",
  242. "73":"y",
  243. "74":"y",
  244. "75":"y",
  245. "76":"y",
  246. "77":"y",
  247. "78":"y",
  248. "79":"y",
  249. "80":"y",
  250. "81":"y",
  251. "83":"y",
  252. "84":"y",
  253. "85":"y",
  254. "86":"y",
  255. "87":"y",
  256. "88":"y",
  257. "89":"y"
  258. },
  259. "safari":{
  260. "3.1":"a #1",
  261. "3.2":"a #1",
  262. "4":"y",
  263. "5":"y",
  264. "5.1":"y",
  265. "6":"y",
  266. "6.1":"y",
  267. "7":"y",
  268. "7.1":"y",
  269. "8":"y",
  270. "9":"y",
  271. "9.1":"y",
  272. "10":"y",
  273. "10.1":"y",
  274. "11":"y",
  275. "11.1":"y",
  276. "12":"y",
  277. "12.1":"y",
  278. "13":"y",
  279. "13.1":"y",
  280. "14":"y",
  281. "TP":"y"
  282. },
  283. "opera":{
  284. "9":"y",
  285. "9.5-9.6":"y",
  286. "10.0-10.1":"y",
  287. "10.5":"y",
  288. "10.6":"y",
  289. "11":"y",
  290. "11.1":"y",
  291. "11.5":"y",
  292. "11.6":"y",
  293. "12":"y",
  294. "12.1":"y",
  295. "15":"y",
  296. "16":"y",
  297. "17":"y",
  298. "18":"y",
  299. "19":"y",
  300. "20":"y",
  301. "21":"y",
  302. "22":"y",
  303. "23":"y",
  304. "24":"y",
  305. "25":"y",
  306. "26":"y",
  307. "27":"y",
  308. "28":"y",
  309. "29":"y",
  310. "30":"y",
  311. "31":"y",
  312. "32":"y",
  313. "33":"y",
  314. "34":"y",
  315. "35":"y",
  316. "36":"y",
  317. "37":"y",
  318. "38":"y",
  319. "39":"y",
  320. "40":"y",
  321. "41":"y",
  322. "42":"y",
  323. "43":"y",
  324. "44":"y",
  325. "45":"y",
  326. "46":"y",
  327. "47":"y",
  328. "48":"y",
  329. "49":"y",
  330. "50":"y",
  331. "51":"y",
  332. "52":"y",
  333. "53":"y",
  334. "54":"y",
  335. "55":"y",
  336. "56":"y",
  337. "57":"y",
  338. "58":"y",
  339. "60":"y",
  340. "62":"y",
  341. "63":"y",
  342. "64":"y",
  343. "65":"y",
  344. "66":"y",
  345. "67":"y",
  346. "68":"y",
  347. "69":"y",
  348. "70":"y",
  349. "71":"y"
  350. },
  351. "ios_saf":{
  352. "3.2":"y",
  353. "4.0-4.1":"y",
  354. "4.2-4.3":"y",
  355. "5.0-5.1":"y",
  356. "6.0-6.1":"y",
  357. "7.0-7.1":"y",
  358. "8":"y",
  359. "8.1-8.4":"y",
  360. "9.0-9.2":"y",
  361. "9.3":"y",
  362. "10.0-10.2":"y",
  363. "10.3":"y",
  364. "11.0-11.2":"y",
  365. "11.3-11.4":"y",
  366. "12.0-12.1":"y",
  367. "12.2-12.4":"y",
  368. "13.0-13.1":"y",
  369. "13.2":"y",
  370. "13.3":"y",
  371. "13.4-13.7":"y",
  372. "14":"y"
  373. },
  374. "op_mini":{
  375. "all":"a #2"
  376. },
  377. "android":{
  378. "2.1":"a #1",
  379. "2.2":"a #1",
  380. "2.3":"a #1",
  381. "3":"y",
  382. "4":"y",
  383. "4.1":"y",
  384. "4.2-4.3":"y",
  385. "4.4":"y",
  386. "4.4.3-4.4.4":"y",
  387. "81":"y"
  388. },
  389. "bb":{
  390. "7":"y",
  391. "10":"y"
  392. },
  393. "op_mob":{
  394. "10":"y",
  395. "11":"y",
  396. "11.1":"y",
  397. "11.5":"y",
  398. "12":"y",
  399. "12.1":"y",
  400. "59":"y"
  401. },
  402. "and_chr":{
  403. "85":"y"
  404. },
  405. "and_ff":{
  406. "79":"y"
  407. },
  408. "ie_mob":{
  409. "10":"y",
  410. "11":"y"
  411. },
  412. "and_uc":{
  413. "12.12":"y"
  414. },
  415. "samsung":{
  416. "4":"y",
  417. "5.0-5.4":"y",
  418. "6.2-6.4":"y",
  419. "7.2-7.4":"y",
  420. "8.2":"y",
  421. "9.2":"y",
  422. "10.1":"y",
  423. "11.1-11.2":"y",
  424. "12.0":"y"
  425. },
  426. "and_qq":{
  427. "10.4":"y"
  428. },
  429. "baidu":{
  430. "7.12":"y"
  431. },
  432. "kaios":{
  433. "2.5":"y"
  434. }
  435. },
  436. "notes":"For screen readers, IE, Chrome & Firefox support the [accessible canvas element sub-DOM](http://www.paciellogroup.com/blog/2012/06/html5-canvas-accessibility-in-firefox-13/).\r\nFirefox & Chrome also support the drawfocus ring.",
  437. "notes_by_num":{
  438. "1":"Does not support `toDataURL()`",
  439. "2":"Opera Mini supports the canvas element, but is unable to play animations or run other more complex applications."
  440. },
  441. "usage_perc_y":98.49,
  442. "usage_perc_a":0.98,
  443. "ucprefix":false,
  444. "parent":"",
  445. "keywords":"toDataURL()",
  446. "ie_id":"canvas",
  447. "chrome_id":"5100084685438976",
  448. "firefox_id":"",
  449. "webkit_id":"",
  450. "shown":true
  451. }