Canvas and HTML5: Supported Browsers?

2019-03-17 07:12发布

问题:

I am looking at using HTML5 Canvas element for my upcoming project. I want to know what all major browsers (including the versions!, cos i know that the latest builds do support canvas) support the Canvas tag. I don't give a damn about IE. So don't bother reporting IE. :) In this tutorial Drawing shapes - MDC, the quadraticCurveTo section says:

quadraticCurveTo(cp1x, cp1y, x, y) // BROKEN in Firefox 1.5 (see work around below)

Does that mean that Canvas is supported on Firefox 1.5 and above too?

回答1:

caniuse.com lists browser support for many different features, including canvas.

Specifically, browser support for canvas is listed at caniuse.com/#search=canvas.



回答2:

It's not only about "supporting Canvas", but about the bugs that each implementation has about this and missing methods that have been added since the initial release. So even if one version of Firefox does add the basic Canvas support, it might have some bugs that make it impossible to use it in your application.

In that case, you might need to check the current versions and then go back as far as you want to support to verify if they work as expected.