15 image-rendering: -webkit-optimize-contrast;
19 <!-- The resulting image should be 100x100, consisting of 4 50x50 blocks of solid color, with no blurring of edges -->
20 <canvas width=
"2" height=
"2"></canvas>
23 if (window
.testRunner
)
24 testRunner
.dumpAsTextWithPixelResults();
28 canvas
= document
.getElementsByTagName("canvas")[0].getContext("2d");
31 imageHandle
= canvas
.createImageData(2, 2);
34 var length
= imageHandle
.data
.length
;
36 imageHandle
.data
[index
++] = 255;
37 imageHandle
.data
[index
++] = 0;
38 imageHandle
.data
[index
++] = 0;
39 imageHandle
.data
[index
++] = 255;
41 imageHandle
.data
[index
++] = 0;
42 imageHandle
.data
[index
++] = 255;
43 imageHandle
.data
[index
++] = 0;
44 imageHandle
.data
[index
++] = 255;
46 imageHandle
.data
[index
++] = 0;
47 imageHandle
.data
[index
++] = 0;
48 imageHandle
.data
[index
++] = 255;
49 imageHandle
.data
[index
++] = 255;
51 imageHandle
.data
[index
++] = 0;
52 imageHandle
.data
[index
++] = 0;
53 imageHandle
.data
[index
++] = 0;
54 imageHandle
.data
[index
++] = 255;
56 canvas
.putImageData(imageHandle
, 0, 0);