2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
3 <div style=
"width: 200px; height: 200px; transform: translateZ(0); background-color: lightgreen"></div>
4 <div style=
"position: relative; top: -50px; left: 50px; width: 200px; height: 200px; background-color: blue">
5 <div id=
"child" style=
"background-color: red; width: 100px; height: 100px;"></div>
9 testRunner
.waitUntilDone();
11 runAfterLayoutAndPaint(function() {
12 document
.getElementById('child').style
.backgroundColor
= 'green';
13 runAfterLayoutAndPaint(function() {
14 if (window
.testRunner
)
15 testRunner
.notifyDone();