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;
14 transform: translateZ(
0);
23 background-color: rgba(
0,
0,
0,
0.2);
27 <script type=
"text/javascript" charset=
"utf-8">
28 if (window.testRunner) {
29 testRunner.dumpAsText();
30 testRunner.waitUntilDone();
35 runAfterLayoutAndPaint(function() {
36 document.getElementById('iframe').className = 'composited';
38 if (window.testRunner) {
39 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
40 testRunner.notifyDone();
45 window.addEventListener('load', doTest, false);
50 <!-- Test with already-composited iframe, and iframe contents becoming composited. -->
51 <iframe id=
"iframe" src=
"resources/composited-subframe.html"></iframe>
56 <pre id=
"layers">Layer tree appears here in DRT.
</pre>