blob: f0d9fd4b937acb30e8cd344cea2511167f503b4f [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.multiply</title>
<canvas id="canvas" class="output" width="100" height="100"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
var ctx = document.getElementById("canvas").getContext("2d");
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 100);
ctx.transform(1,2, 3,4, 5,6);
ctx.transform(-2,1, 3/2,-1/2, 1,-2);
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 100, 100);
</script>