canvas.json 7.5 KB

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