18 lines
610 B
HTML
18 lines
610 B
HTML
<!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.nan</title>
|
|
<canvas id="canvas" class="output" width="100" height="100"><p class="fallback">FAIL (fallback content)</p></canvas>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText(true);
|
|
|
|
var ctx = document.getElementById("canvas").getContext("2d");
|
|
ctx.fillStyle = '#f00';
|
|
ctx.fillRect(0, 0, 100, 100);
|
|
ctx.transform(NaN,0, 0,NaN, 0,0);
|
|
ctx.fillStyle = '#0f0';
|
|
ctx.fillRect(-100, -100, 200, 200);
|
|
</script>
|