Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / iframes / connect-compositing-iframe-delayed.html
blobb74c5ff331264eb760bd8a3ef73264ff4dc3d3e5
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <script src="../../resources/run-after-layout-and-paint.js"></script>
6 <style type="text/css" media="screen">
7 iframe {
8 border: 10px solid black;
9 padding: 5px;
10 margin: 20px;
11 height: 150px;
12 width: 300px;
13 -webkit-box-shadow: 0 0 20px black;
16 #box {
17 height: 100px;
18 width: 100px;
19 background-color: blue;
22 .composited {
23 transform: translateZ(0);
26 </style>
27 <script type="text/javascript" charset="utf-8">
28 if (window.testRunner) {
29 testRunner.dumpAsText();
30 testRunner.waitUntilDone();
33 function doTest()
35 runAfterLayoutAndPaint(function() {
36 document.getElementById('box').className = 'composited';
37 if (window.testRunner) {
38 document.getElementById('iframe').contentDocument.body.offsetWidth; // update iframe layout
39 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
40 testRunner.notifyDone();
42 });
45 window.addEventListener('load', doTest, false);
46 </script>
47 </head>
48 <body>
50 <div id="box"></div>
52 <!-- Test with already-composited iframe contents, and iframe itself composited. -->
53 <iframe id="iframe" src="resources/composited-subframe.html"></iframe>
55 <p>When the parent document becomes composited, the layer trees should get connected together.</p>
56 <pre id="layers">Layer tree appears here in DRT.</pre>
57 </body>
58 </html>