3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/licenses/publicdomain/
6 <html reftest-zoom=
"2">
8 <title>test image-rendering
</title>
10 canvas { position:absolute;left:
0px;top:
0px; }
12 <script type=
"text/javascript">
14 var canvas
= document
.getElementById("canvas");
15 var ctx
= canvas
.getContext("2d");
16 ctx
.fillStyle
= "rgb(255,0,0)";
17 ctx
.fillRect(25,25,100,100);
18 ctx
.fillStyle
= "rgb(0,255,0)";
19 ctx
.fillRect(25,25,50,50);
23 <body onload=
"draw();">
24 <canvas style=
"image-rendering: -moz-crisp-edges; " id=
"canvas" width=
"300" height=
"300"></canvas>