Painting the DOM to Canvas with Domvas
Domvas is a tool that uses what amounts to a backdoor via SVG to allow you to turn DOM elements into images that can be painted onto a Canvas.
Why would you want to do this? Well, taking advantage of all the neat CSS3 effects for HUD elements for a start.
How does it work? Creator Paul Bakaus explains: “Domvas uses a feature of SVG that allows you to embed XHTML content into the SVG – and as you might know, the actual SVG can be used as a data uri, and therefore behaves like a standard image.”
The code does not work on IE.
Check out the project home page or the code on Github