4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
5 <title>Canvas Incremental Repaint
</title>
6 <style type=
"text/css" media=
"screen">
10 border:
20px solid black;
13 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
14 <script type=
"text/javascript" charset=
"utf-8">
16 if (window.testRunner) {
17 testRunner.dumpAsTextWithPixelResults();
18 testRunner.waitUntilDone();
21 function repaintTest()
23 var canvas = document.getElementById('canvas1');
24 var ctx = canvas.getContext('
2d');
26 ctx.fillStyle = 'green';
28 ctx.setTransform(
1,
0,
0,
1,
50,
200);
29 // Test the the transform applies the matrix in the correct order.
30 ctx.transform(
1,
0,
0, -
1,
0,
0);
31 ctx.fillRect(
0,
100,
200,
80);
33 if (window.testRunner) {
34 testRunner.notifyDone();
39 <body onload=
"runAfterLayoutAndPaint(repaintTest)">
40 <canvas id=
"canvas1"></canvas>