As of right now, the only browser that seems to support them is Firefox. Apparently Opera used to support it but later dropped it. Perhaps a JavaScript shim?
Reusing the non-serialization-related parts of the procedure from How do I set an SVG element to my page's favicon?:
element (hereafter referred to as canvasElement).![]()
element (hereafter referred to as imageElement) and set its href to your SVG icon.complete property of the element after setting the href, calling the following steps directly if so and adding them as a listener for the load event if not), set the canvas dimensions to match with canvasElement.width = imageElement.width and canvasElement.height = imageElement.height).canvasElement.getContext('2d') (hereafter referred to as ctx).ctx.globalCompositeOperation = "copy", especially if re-using the canvas element) onto the canvas using ctx.drawImage(imageElement, 0, 0, canvasElement.width, canvasElement.height).canvasElement.toDataURL(), and set that to the href attribute of the element in your HTML.