blob: 2ff8abadde84f25c253a6f193d88ab719172dfd6 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- Test based on that found at
http://philip.html5.org/tests/canvas/suite/tests/index.2d.transformation.transform.html
-->
<title>Canvas test: 2d.transformation.transform.identity</title>
<canvas id="canvas" class="output" width="100" height="100"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
if (window.testRunner)
testRunner.dumpAsText(true);
var canvas = document.getElementById("canvas").getContext("2d");
canvas.fillStyle = '#f00';
canvas.fillRect(0, 0, 100, 100);
canvas.transform(1,0, 0,1, 0,0);
canvas.fillStyle = '#0f0';
canvas.fillRect(0, 0, 100, 100);
</script>