5 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
6 <style type=
"text/css" media=
"screen">
8 border:
10px solid black;
13 -webkit-box-shadow:
0 0 20px black;
22 background-color: rgba(
0,
0,
0,
0.2);
26 <script type=
"text/javascript" charset=
"utf-8">
27 if (window.testRunner) {
28 testRunner.dumpAsText();
29 testRunner.waitUntilDone();
32 // Called from subframe.
35 document.getElementById('parent-iframe').contentDocument.body.offsetWidth; // work around bug
41999.
36 if (window.testRunner) {
37 runAfterLayoutAndPaint(function() {
38 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
39 testRunner.notifyDone();
47 <!-- The parent document may into compositing mode by the iframe. -->
48 <iframe id=
"parent-iframe" src=
"resources/enter-compositing-subframe.html"></iframe>
53 <pre id=
"layers">Layer tree appears here in DRT.
</pre>