HTML and CSS Reference
In-Depth Information
Browser support
Both
<canvas>
and
SVG
have wide support in current browsers, with
prospects for even better support in the respective next releases.
<canvas>
support tends to be all or nothing, but the situation with
SVG
is a lot more complex.
The
SVG
spec itself is about as complex as the
HTML
one, and no
browser fully supports it, so the following table lists the percentage of
the
W3C
SVG
test suite that each browser passes. Figures aren't avail-
able for all browser versions, so the results for the most recent test in
each
browser
are
shown
(thanks
to
www.codedread.com/svg-
support.php
for the figures).
12
14
4
6
8
9
10
11.5
12
5
5.1
<canvas>
●
●
●
●
● ● ●
●
●
●
<canvas>
text
●
●
●
●
● ● ●
●
●
●
SVG score
89.23%
82.30%
-
59.64%
95.44%
82.48%
SVG as image
●
●
●
●
● ● ●
●
●
●
SVG in CSS
●
●
●
●
● ● ●
●
●
●
SVG as object
●
●
●
●
● ● ●
●
●
●
SVG in XHTML ●
●
●
●
● ● ●
●
●
●
SVG in HTML
●
●
●
●
● ●
●
●
Key:
● Complete or nearly complete support
○ Incomplete or alternative support
Little or no support
Supporting <canvas> in older versions of IE with explorercanvas
Internet Explorer was the only major browser that had no support for
the
<canvas>
element, although support has been added in
IE9
. But
older versions of
IE
have support for Vector Markup Language