9 image-rendering: pixelated;
13 <img src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFElEQVQIHWP4z8DwHwyBNJDN8B8AQNEG+t5Ik2kAAAAASUVORK5CYII=">
14 <!-- Test that resizing a pixelated canvas works. -->
15 <!-- The canvas should be upscaled without blurring. -->
16 <canvas width=
"4" height=
"4"></canvas>
19 // Ignore the render tree.
20 if (window
.testRunner
)
21 window
.testRunner
.dumpAsTextWithPixelResults();
23 function drawToCanvas(canvas
) {
24 var ctx
= canvas
.getContext("2d")
25 ctx
.drawImage(document
.getElementsByTagName("img")[0], 1, 1);
29 var canvas
= document
.getElementsByTagName("canvas")[0];
31 // Resize so that the image buffer is reset.
33 canvas
.style
.width
= "201px";