blob: daef5957a4fa6bbf48e28c18a6ee8e4297c8d89d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!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.dumpAsTextWithPixelResults();
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>
|