Created
February 10, 2014 19:39
-
-
Save anonymous/8922683 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<canvas id="c" style="display: none"></canvas> | |
<div style="background: -moz-element(#c)">Foo</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var c = document.getElementById('c'); | |
var ctx = c.getContext('2d'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment