1 <div style=
"position: relative;">
2 <div style=
"width: 100px; height: 100px; background-color: red;"></div>
3 <div style=
"visibility: hidden; position: absolute; top: 0;">
4 <div id=
"inner" style=
"width: 100px; height: 100px; background-color: green;"></div>
7 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
10 testRunner
.waitUntilDone();
11 runAfterLayoutAndPaint(function() {
12 document
.getElementById("inner").style
.visibility
= "visible";
13 if (window
.testRunner
)
14 testRunner
.notifyDone();