Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-transform-identity.html
blob57f26d18b2dc5baeed7de0038bca18a472387c22
1 <!DOCTYPE HTML>
2 <!-- Test based on that found at
3 http://philip.html5.org/tests/canvas/suite/tests/index.2d.transformation.transform.html
4 -->
5 <title>Canvas test: 2d.transformation.transform.identity</title>
6 <canvas id="canvas" class="output" width="100" height="100"><p class="fallback">FAIL (fallback content)</p></canvas>
7 <script>
8 var canvas = document.getElementById("canvas").getContext("2d");
9 canvas.fillStyle = '#f00';
10 canvas.fillRect(0, 0, 100, 100);
11 canvas.transform(1,0, 0,1, 0,0);
12 canvas.fillStyle = '#0f0';
13 canvas.fillRect(0, 0, 100, 100);
14 </script>