canvas.json 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  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://web.archive.org/web/20171004111538/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. "87":"y",
  86. "88":"y",
  87. "89":"y",
  88. "90":"y",
  89. "91":"y",
  90. "92":"y",
  91. "93":"y",
  92. "94":"y"
  93. },
  94. "firefox":{
  95. "2":"a #1",
  96. "3":"a #1",
  97. "3.5":"a #1",
  98. "3.6":"y",
  99. "4":"y",
  100. "5":"y",
  101. "6":"y",
  102. "7":"y",
  103. "8":"y",
  104. "9":"y",
  105. "10":"y",
  106. "11":"y",
  107. "12":"y",
  108. "13":"y",
  109. "14":"y",
  110. "15":"y",
  111. "16":"y",
  112. "17":"y",
  113. "18":"y",
  114. "19":"y",
  115. "20":"y",
  116. "21":"y",
  117. "22":"y",
  118. "23":"y",
  119. "24":"y",
  120. "25":"y",
  121. "26":"y",
  122. "27":"y",
  123. "28":"y",
  124. "29":"y",
  125. "30":"y",
  126. "31":"y",
  127. "32":"y",
  128. "33":"y",
  129. "34":"y",
  130. "35":"y",
  131. "36":"y",
  132. "37":"y",
  133. "38":"y",
  134. "39":"y",
  135. "40":"y",
  136. "41":"y",
  137. "42":"y",
  138. "43":"y",
  139. "44":"y",
  140. "45":"y",
  141. "46":"y",
  142. "47":"y",
  143. "48":"y",
  144. "49":"y",
  145. "50":"y",
  146. "51":"y",
  147. "52":"y",
  148. "53":"y",
  149. "54":"y",
  150. "55":"y",
  151. "56":"y",
  152. "57":"y",
  153. "58":"y",
  154. "59":"y",
  155. "60":"y",
  156. "61":"y",
  157. "62":"y",
  158. "63":"y",
  159. "64":"y",
  160. "65":"y",
  161. "66":"y",
  162. "67":"y",
  163. "68":"y",
  164. "69":"y",
  165. "70":"y",
  166. "71":"y",
  167. "72":"y",
  168. "73":"y",
  169. "74":"y",
  170. "75":"y",
  171. "76":"y",
  172. "77":"y",
  173. "78":"y",
  174. "79":"y",
  175. "80":"y",
  176. "81":"y",
  177. "82":"y",
  178. "83":"y",
  179. "84":"y",
  180. "85":"y",
  181. "86":"y",
  182. "87":"y",
  183. "88":"y",
  184. "89":"y",
  185. "90":"y",
  186. "91":"y",
  187. "92":"y",
  188. "93":"y",
  189. "94":"y",
  190. "95":"y"
  191. },
  192. "chrome":{
  193. "4":"y",
  194. "5":"y",
  195. "6":"y",
  196. "7":"y",
  197. "8":"y",
  198. "9":"y",
  199. "10":"y",
  200. "11":"y",
  201. "12":"y",
  202. "13":"y",
  203. "14":"y",
  204. "15":"y",
  205. "16":"y",
  206. "17":"y",
  207. "18":"y",
  208. "19":"y",
  209. "20":"y",
  210. "21":"y",
  211. "22":"y",
  212. "23":"y",
  213. "24":"y",
  214. "25":"y",
  215. "26":"y",
  216. "27":"y",
  217. "28":"y",
  218. "29":"y",
  219. "30":"y",
  220. "31":"y",
  221. "32":"y",
  222. "33":"y",
  223. "34":"y",
  224. "35":"y",
  225. "36":"y",
  226. "37":"y",
  227. "38":"y",
  228. "39":"y",
  229. "40":"y",
  230. "41":"y",
  231. "42":"y",
  232. "43":"y",
  233. "44":"y",
  234. "45":"y",
  235. "46":"y",
  236. "47":"y",
  237. "48":"y",
  238. "49":"y",
  239. "50":"y",
  240. "51":"y",
  241. "52":"y",
  242. "53":"y",
  243. "54":"y",
  244. "55":"y",
  245. "56":"y",
  246. "57":"y",
  247. "58":"y",
  248. "59":"y",
  249. "60":"y",
  250. "61":"y",
  251. "62":"y",
  252. "63":"y",
  253. "64":"y",
  254. "65":"y",
  255. "66":"y",
  256. "67":"y",
  257. "68":"y",
  258. "69":"y",
  259. "70":"y",
  260. "71":"y",
  261. "72":"y",
  262. "73":"y",
  263. "74":"y",
  264. "75":"y",
  265. "76":"y",
  266. "77":"y",
  267. "78":"y",
  268. "79":"y",
  269. "80":"y",
  270. "81":"y",
  271. "83":"y",
  272. "84":"y",
  273. "85":"y",
  274. "86":"y",
  275. "87":"y",
  276. "88":"y",
  277. "89":"y",
  278. "90":"y",
  279. "91":"y",
  280. "92":"y",
  281. "93":"y",
  282. "94":"y",
  283. "95":"y",
  284. "96":"y",
  285. "97":"y"
  286. },
  287. "safari":{
  288. "3.1":"a #1",
  289. "3.2":"a #1",
  290. "4":"y",
  291. "5":"y",
  292. "5.1":"y",
  293. "6":"y",
  294. "6.1":"y",
  295. "7":"y",
  296. "7.1":"y",
  297. "8":"y",
  298. "9":"y",
  299. "9.1":"y",
  300. "10":"y",
  301. "10.1":"y",
  302. "11":"y",
  303. "11.1":"y",
  304. "12":"y",
  305. "12.1":"y",
  306. "13":"y",
  307. "13.1":"y",
  308. "14":"y",
  309. "14.1":"y",
  310. "15":"y",
  311. "TP":"y"
  312. },
  313. "opera":{
  314. "9":"y",
  315. "9.5-9.6":"y",
  316. "10.0-10.1":"y",
  317. "10.5":"y",
  318. "10.6":"y",
  319. "11":"y",
  320. "11.1":"y",
  321. "11.5":"y",
  322. "11.6":"y",
  323. "12":"y",
  324. "12.1":"y",
  325. "15":"y",
  326. "16":"y",
  327. "17":"y",
  328. "18":"y",
  329. "19":"y",
  330. "20":"y",
  331. "21":"y",
  332. "22":"y",
  333. "23":"y",
  334. "24":"y",
  335. "25":"y",
  336. "26":"y",
  337. "27":"y",
  338. "28":"y",
  339. "29":"y",
  340. "30":"y",
  341. "31":"y",
  342. "32":"y",
  343. "33":"y",
  344. "34":"y",
  345. "35":"y",
  346. "36":"y",
  347. "37":"y",
  348. "38":"y",
  349. "39":"y",
  350. "40":"y",
  351. "41":"y",
  352. "42":"y",
  353. "43":"y",
  354. "44":"y",
  355. "45":"y",
  356. "46":"y",
  357. "47":"y",
  358. "48":"y",
  359. "49":"y",
  360. "50":"y",
  361. "51":"y",
  362. "52":"y",
  363. "53":"y",
  364. "54":"y",
  365. "55":"y",
  366. "56":"y",
  367. "57":"y",
  368. "58":"y",
  369. "60":"y",
  370. "62":"y",
  371. "63":"y",
  372. "64":"y",
  373. "65":"y",
  374. "66":"y",
  375. "67":"y",
  376. "68":"y",
  377. "69":"y",
  378. "70":"y",
  379. "71":"y",
  380. "72":"y",
  381. "73":"y",
  382. "74":"y",
  383. "75":"y",
  384. "76":"y",
  385. "77":"y",
  386. "78":"y",
  387. "79":"y",
  388. "80":"y"
  389. },
  390. "ios_saf":{
  391. "3.2":"y",
  392. "4.0-4.1":"y",
  393. "4.2-4.3":"y",
  394. "5.0-5.1":"y",
  395. "6.0-6.1":"y",
  396. "7.0-7.1":"y",
  397. "8":"y",
  398. "8.1-8.4":"y",
  399. "9.0-9.2":"y",
  400. "9.3":"y",
  401. "10.0-10.2":"y",
  402. "10.3":"y",
  403. "11.0-11.2":"y",
  404. "11.3-11.4":"y",
  405. "12.0-12.1":"y",
  406. "12.2-12.5":"y",
  407. "13.0-13.1":"y",
  408. "13.2":"y",
  409. "13.3":"y",
  410. "13.4-13.7":"y",
  411. "14.0-14.4":"y",
  412. "14.5-14.8":"y",
  413. "15":"y"
  414. },
  415. "op_mini":{
  416. "all":"a #2"
  417. },
  418. "android":{
  419. "2.1":"a #1",
  420. "2.2":"a #1",
  421. "2.3":"a #1",
  422. "3":"y",
  423. "4":"y",
  424. "4.1":"y",
  425. "4.2-4.3":"y",
  426. "4.4":"y",
  427. "4.4.3-4.4.4":"y",
  428. "94":"y"
  429. },
  430. "bb":{
  431. "7":"y",
  432. "10":"y"
  433. },
  434. "op_mob":{
  435. "10":"y",
  436. "11":"y",
  437. "11.1":"y",
  438. "11.5":"y",
  439. "12":"y",
  440. "12.1":"y",
  441. "64":"y"
  442. },
  443. "and_chr":{
  444. "94":"y"
  445. },
  446. "and_ff":{
  447. "92":"y"
  448. },
  449. "ie_mob":{
  450. "10":"y",
  451. "11":"y"
  452. },
  453. "and_uc":{
  454. "12.12":"y"
  455. },
  456. "samsung":{
  457. "4":"y",
  458. "5.0-5.4":"y",
  459. "6.2-6.4":"y",
  460. "7.2-7.4":"y",
  461. "8.2":"y",
  462. "9.2":"y",
  463. "10.1":"y",
  464. "11.1-11.2":"y",
  465. "12.0":"y",
  466. "13.0":"y",
  467. "14.0":"y",
  468. "15.0":"y"
  469. },
  470. "and_qq":{
  471. "10.4":"y"
  472. },
  473. "baidu":{
  474. "7.12":"y"
  475. },
  476. "kaios":{
  477. "2.5":"y"
  478. }
  479. },
  480. "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.",
  481. "notes_by_num":{
  482. "1":"Does not support `toDataURL()`",
  483. "2":"Opera Mini supports the canvas element, but is unable to play animations or run other more complex applications."
  484. },
  485. "usage_perc_y":98.5,
  486. "usage_perc_a":1.21,
  487. "ucprefix":false,
  488. "parent":"",
  489. "keywords":"canvas,toDataURL()",
  490. "ie_id":"canvas",
  491. "chrome_id":"5100084685438976",
  492. "firefox_id":"",
  493. "webkit_id":"",
  494. "shown":true
  495. }