Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-transform-multiply.html
blobf0d9fd4b937acb30e8cd344cea2511167f503b4f
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.multiply</title>
6 <canvas id="canvas" class="output" width="100" height="100"><p class="fallback">FAIL (fallback content)</p></canvas>
7 <script>
8 var ctx = document.getElementById("canvas").getContext("2d");
9 ctx.fillStyle = '#f00';
10 ctx.fillRect(0, 0, 100, 100);
12 ctx.transform(1,2, 3,4, 5,6);
13 ctx.transform(-2,1, 3/2,-1/2, 1,-2);
14 ctx.fillStyle = '#0f0';
15 ctx.fillRect(0, 0, 100, 100);
16 </script>