Using as a CSS Background Question: Is it possible to utilize the element as a background in CSS? Answer: Yes, it is possible to use as a background in CSS, currently supported by both WebKit and Firefox. WebKit Support: Since 2008, WebKit has allowed the use of as a CSS background. Here's an example: div { background: -webkit-canvas(squares); width: 600px; height: 600px; border: 2px solid black; } function draw(w, h) { var ctx = document.getCSSCanvasContext("2d", "squares", w, h); ctx.fillStyle = "rgb(200, 0, 0)"; ctx.fillRect(10, 10, 55, 50); ctx.fillStyle = "rgba(0, 0, 200, 0.5)"; ctx.fillRect(30, 30, 55, 50); } Firefox Support: Firefox 4 introduced a feature that enables any element (including canvas) to be used as a CSS background: For further details, refer to Mozilla hacks.