canvas.json 10 KB

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