canvas.json 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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":"http://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. "firefox":{
  80. "2":"a #1",
  81. "3":"a #1",
  82. "3.5":"a #1",
  83. "3.6":"y",
  84. "4":"y",
  85. "5":"y",
  86. "6":"y",
  87. "7":"y",
  88. "8":"y",
  89. "9":"y",
  90. "10":"y",
  91. "11":"y",
  92. "12":"y",
  93. "13":"y",
  94. "14":"y",
  95. "15":"y",
  96. "16":"y",
  97. "17":"y",
  98. "18":"y",
  99. "19":"y",
  100. "20":"y",
  101. "21":"y",
  102. "22":"y",
  103. "23":"y",
  104. "24":"y",
  105. "25":"y",
  106. "26":"y",
  107. "27":"y",
  108. "28":"y",
  109. "29":"y",
  110. "30":"y",
  111. "31":"y",
  112. "32":"y",
  113. "33":"y",
  114. "34":"y",
  115. "35":"y",
  116. "36":"y",
  117. "37":"y",
  118. "38":"y",
  119. "39":"y",
  120. "40":"y",
  121. "41":"y",
  122. "42":"y",
  123. "43":"y",
  124. "44":"y",
  125. "45":"y",
  126. "46":"y",
  127. "47":"y",
  128. "48":"y",
  129. "49":"y",
  130. "50":"y",
  131. "51":"y",
  132. "52":"y",
  133. "53":"y",
  134. "54":"y",
  135. "55":"y",
  136. "56":"y",
  137. "57":"y",
  138. "58":"y",
  139. "59":"y",
  140. "60":"y",
  141. "61":"y",
  142. "62":"y"
  143. },
  144. "chrome":{
  145. "4":"y",
  146. "5":"y",
  147. "6":"y",
  148. "7":"y",
  149. "8":"y",
  150. "9":"y",
  151. "10":"y",
  152. "11":"y",
  153. "12":"y",
  154. "13":"y",
  155. "14":"y",
  156. "15":"y",
  157. "16":"y",
  158. "17":"y",
  159. "18":"y",
  160. "19":"y",
  161. "20":"y",
  162. "21":"y",
  163. "22":"y",
  164. "23":"y",
  165. "24":"y",
  166. "25":"y",
  167. "26":"y",
  168. "27":"y",
  169. "28":"y",
  170. "29":"y",
  171. "30":"y",
  172. "31":"y",
  173. "32":"y",
  174. "33":"y",
  175. "34":"y",
  176. "35":"y",
  177. "36":"y",
  178. "37":"y",
  179. "38":"y",
  180. "39":"y",
  181. "40":"y",
  182. "41":"y",
  183. "42":"y",
  184. "43":"y",
  185. "44":"y",
  186. "45":"y",
  187. "46":"y",
  188. "47":"y",
  189. "48":"y",
  190. "49":"y",
  191. "50":"y",
  192. "51":"y",
  193. "52":"y",
  194. "53":"y",
  195. "54":"y",
  196. "55":"y",
  197. "56":"y",
  198. "57":"y",
  199. "58":"y",
  200. "59":"y",
  201. "60":"y",
  202. "61":"y",
  203. "62":"y",
  204. "63":"y",
  205. "64":"y",
  206. "65":"y",
  207. "66":"y",
  208. "67":"y",
  209. "68":"y",
  210. "69":"y"
  211. },
  212. "safari":{
  213. "3.1":"a #1",
  214. "3.2":"a #1",
  215. "4":"y",
  216. "5":"y",
  217. "5.1":"y",
  218. "6":"y",
  219. "6.1":"y",
  220. "7":"y",
  221. "7.1":"y",
  222. "8":"y",
  223. "9":"y",
  224. "9.1":"y",
  225. "10":"y",
  226. "10.1":"y",
  227. "11":"y",
  228. "11.1":"y",
  229. "TP":"y"
  230. },
  231. "opera":{
  232. "9":"y",
  233. "9.5-9.6":"y",
  234. "10.0-10.1":"y",
  235. "10.5":"y",
  236. "10.6":"y",
  237. "11":"y",
  238. "11.1":"y",
  239. "11.5":"y",
  240. "11.6":"y",
  241. "12":"y",
  242. "12.1":"y",
  243. "15":"y",
  244. "16":"y",
  245. "17":"y",
  246. "18":"y",
  247. "19":"y",
  248. "20":"y",
  249. "21":"y",
  250. "22":"y",
  251. "23":"y",
  252. "24":"y",
  253. "25":"y",
  254. "26":"y",
  255. "27":"y",
  256. "28":"y",
  257. "29":"y",
  258. "30":"y",
  259. "31":"y",
  260. "32":"y",
  261. "33":"y",
  262. "34":"y",
  263. "35":"y",
  264. "36":"y",
  265. "37":"y",
  266. "38":"y",
  267. "39":"y",
  268. "40":"y",
  269. "41":"y",
  270. "42":"y",
  271. "43":"y",
  272. "44":"y",
  273. "45":"y",
  274. "46":"y",
  275. "47":"y",
  276. "48":"y",
  277. "49":"y",
  278. "50":"y",
  279. "51":"y",
  280. "52":"y"
  281. },
  282. "ios_saf":{
  283. "3.2":"y",
  284. "4.0-4.1":"y",
  285. "4.2-4.3":"y",
  286. "5.0-5.1":"y",
  287. "6.0-6.1":"y",
  288. "7.0-7.1":"y",
  289. "8":"y",
  290. "8.1-8.4":"y",
  291. "9.0-9.2":"y",
  292. "9.3":"y",
  293. "10.0-10.2":"y",
  294. "10.3":"y",
  295. "11.0-11.2":"y",
  296. "11.3":"y"
  297. },
  298. "op_mini":{
  299. "all":"a #2"
  300. },
  301. "android":{
  302. "2.1":"a #1",
  303. "2.2":"a #1",
  304. "2.3":"a #1",
  305. "3":"y",
  306. "4":"y",
  307. "4.1":"y",
  308. "4.2-4.3":"y",
  309. "4.4":"y",
  310. "4.4.3-4.4.4":"y",
  311. "62":"y"
  312. },
  313. "bb":{
  314. "7":"y",
  315. "10":"y"
  316. },
  317. "op_mob":{
  318. "10":"y",
  319. "11":"y",
  320. "11.1":"y",
  321. "11.5":"y",
  322. "12":"y",
  323. "12.1":"y",
  324. "37":"y"
  325. },
  326. "and_chr":{
  327. "66":"y"
  328. },
  329. "and_ff":{
  330. "57":"y"
  331. },
  332. "ie_mob":{
  333. "10":"y",
  334. "11":"y"
  335. },
  336. "and_uc":{
  337. "11.8":"y"
  338. },
  339. "samsung":{
  340. "4":"y",
  341. "5":"y",
  342. "6.2":"y"
  343. },
  344. "and_qq":{
  345. "1.2":"y"
  346. },
  347. "baidu":{
  348. "7.12":"y"
  349. }
  350. },
  351. "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.",
  352. "notes_by_num":{
  353. "1":"Does not support `toDataURL()`",
  354. "2":"Opera Mini supports the canvas element, but is unable to play animations or run other more complex applications."
  355. },
  356. "usage_perc_y":94.65,
  357. "usage_perc_a":2.84,
  358. "ucprefix":false,
  359. "parent":"",
  360. "keywords":"toDataURL()",
  361. "ie_id":"canvas",
  362. "chrome_id":"5100084685438976",
  363. "firefox_id":"",
  364. "webkit_id":"",
  365. "shown":true
  366. }