6 image-rendering: pixelated;
11 image-rendering: pixelated;
18 image-rendering: pixelated;
22 <!-- The output should be checkerboards all 20x20 with sharp 2x2 blocks and no blurring. -->
23 <!-- FIXME: this test is a little too small to visually inspect for blurring. Should we make the test larger and more accessible? -->
24 <canvas width=
"10" height=
"10"></canvas>
25 <img src=
"resources/pixelated-hdpi.png">
26 <svg><image width=
"10" height=
"10" xlink:
href=
"resources/pixelated-hdpi.png"/></svg>
29 function drawImageToCanvas() {
30 var image
= document
.getElementsByTagName("img")[0];
31 var canvas
= document
.getElementsByTagName("canvas")[0].getContext("2d");
32 canvas
.drawImage(image
, 0, 0);
36 if (!window
.testRunner
)
39 // Ignore the render tree.
40 testRunner
.dumpAsTextWithPixelResults();
42 testRunner
.waitUntilDone();
43 testRunner
.setBackingScaleFactor(2, function () {
45 testRunner
.notifyDone();
49 window
.onload
= runTest
;