| <!DOCTYPE html> |
| <title>Canvas test: 2d.shadow.blur.high</title> |
| <script src="../tests.js"></script> |
| <link rel="stylesheet" href="../tests.css"> |
| <link rel="prev" href="2d.shadow.blur.low.html" title="2d.shadow.blur.low"> |
| <link rel="next" href="2d.shadow.alpha.1.html" title="2d.shadow.alpha.1"> |
| <body class="show_output"> |
| <p> |
| <a href="2d.shadow.blur.low.html" accesskey="p" title="[p] 2d.shadow.blur.low"><</a> |
| <a href="index.html">[index]</a> |
| <a href="2d.shadow.alpha.1.html" accesskey="n" title="[n] 2d.shadow.alpha.1">></a> |
| <h1><a href="index.2d.html">2d</a>.<a href="index.2d.shadow.html">shadow</a>.<a href="index.2d.shadow.blur.html">blur</a>.high</h1> |
| <p class="desc">Shadows look correct for large blurs</p> |
| <div class="refs">References: |
| <ul> |
| <li><a href="spec.html#testrefs.2d.shadow.render">2d.shadow.render</a> |
| |
| </ul> |
| </div> |
| |
| <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="2d.shadow.blur.high.png" class="output expected" id="expected" alt=""> |
| <ul id="d"></ul> |
| <script> |
| _addTest(function(canvas, ctx) { |
| |
| ctx.fillStyle = '#ff0'; |
| ctx.fillRect(0, 0, 100, 50); |
| ctx.shadowColor = '#00f'; |
| ctx.shadowOffsetY = 0; |
| ctx.shadowBlur = 555.6; |
| ctx.fillRect(-200, -200, 200, 400); |
| |
| |
| }); |
| </script> |
| |