7 border:
2px solid black;
8 content: -webkit-canvas(squares);
11 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
12 <script type=
"application/x-javascript">
13 if (window.testRunner) {
14 testRunner.dumpAsTextWithPixelResults();
15 testRunner.waitUntilDone();
17 function repaintTest()
19 var ctx = document.getCSSCanvasContext(
"2d",
"squares",
300,
300);
21 ctx.fillStyle =
"rgb(200,0,0)";
22 ctx.fillRect (
10,
10,
100,
100);
24 ctx.fillStyle =
"rgba(0, 0, 200, 0.5)";
25 ctx.fillRect (
50,
50,
100,
100);
26 if (window.testRunner)
27 testRunner.notifyDone();
31 <body onload=
"runAfterLayoutAndPaint(repaintTest)">