8 transform: translateZ(
0);
14 border:
1px solid red;
24 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
27 // left of #container, initial left of #test, final left of #test
28 [ '10.5px', '12.5px', '10.5px' ],
29 [ '10.6px', '12.4px', '10.4px' ],
30 [ '10.4px', '12.6px', '10.6px' ],
31 [ '10.6px', '12.6px', '10.6px' ],
32 [ '10.4px', '12.4px', '10.4px' ]
36 if (window
.testRunner
) {
37 testRunner
.dumpAsText();
38 testRunner
.waitUntilDone();
41 function repaintTest() {
42 document
.getElementById('container').style
.left
= testData
[testIndex
][0];
43 document
.getElementById('test').style
.left
= testData
[testIndex
][1];
44 runAfterLayoutAndPaint(runTest
);
49 internals
.startTrackingRepaints(document
);
50 document
.getElementById('test').style
.left
= testData
[testIndex
][2];
51 if (window
.internals
) {
52 document
.getElementById('console').textContent
+= testData
[testIndex
] + ':\n'
53 + internals
.layerTreeAsText(document
, internals
.LAYER_TREE_INCLUDES_REPAINT_RECTS
);
54 internals
.stopTrackingRepaints(document
);
57 if (++testIndex
< testData
.length
) {
60 // Display the test results only after test is done so that it does not affect repaint rect results.
61 document
.getElementById('console').style
.display
= "block";
62 if (window
.testRunner
)
63 testRunner
.notifyDone();
67 <body onload=
"repaintTest()">
68 <div id=
"container"><div id=
"test"></div></div>
69 <pre id=
"console"></pre>