4 background-color: gray;
9 <p>Test passes if a green square inside an orange rectanlge is shown up without a distortion.
11 <canvas width='
200' height='
200'
></canvas>
14 function paintCanvas(canvas
)
16 var ctx
= canvas
.getContext('2d');
17 ctx
.fillStyle
= 'orange';
21 ctx
.rect(50, 0, 100, 200);
23 ctx
.fillRect(0, 0, 200, 200);
26 ctx
.fillStyle
= 'green';
27 ctx
.fillRect(75, 75, 50, 50);
30 paintCanvas(document
.querySelector('canvas'));