| <title>Canvas test: 2d.path.transformation.changing</title> |
| <script src="../tests.js"></script> |
| <link rel="stylesheet" href="../tests.css"> |
| <link rel="prev" href="2d.path.transformation.multiple.html" title="2d.path.transformation.multiple"> |
| <link rel="next" href="2d.path.clip.empty.html" title="2d.path.clip.empty"> |
| <body class="show_output"> |
| <a href="2d.path.transformation.multiple.html" accesskey="p" title="[p] 2d.path.transformation.multiple"><</a> |
| <a href="index.html">[index]</a> |
| <a href="2d.path.clip.empty.html" accesskey="n" title="[n] 2d.path.clip.empty">></a> |
| <h1><a href="index.2d.html">2d</a>.<a href="index.2d.path.html">path</a>.<a href="index.2d.path.transformation.html">transformation</a>.changing</h1> |
| <p class="desc">Transformations are applied while building paths, not when drawing</p> |
| <div class="refs">References: |
| <li><a href="spec.html#testrefs.2d.path.transformation">2d.path.transformation</a> |
| <p class="output">Actual output:</p> |
| <canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> |
| <p class="output expectedtext">Expected output:<p><img src="green-100x50.png" class="output expected" id="expected" alt=""> |
| _addTest(function(canvas, ctx) { |
| ctx.fillRect(0, 0, 100, 50); |
| ctx.translate(1000, 1000); |
| _assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); |