Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / iframes / connect-compositing-iframe.html
blob11dce615fe396fb201dcfd1d7192915ed2b49f54
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;
14 transform: translateZ(0);
17 .overlay {
18 position: absolute;
19 width: 50px;
20 height: 50px;
21 top: 5px;
22 left: 5px;
23 background-color: rgba(0, 0, 0, 0.2);
26 </style>
27 <script type="text/javascript" charset="utf-8">
28 if (window.testRunner) {
29 testRunner.dumpAsText();
30 testRunner.waitUntilDone();
33 // Called from subframe.
34 function testDone()
36 document.getElementById('parent-iframe').contentDocument.body.offsetWidth; // work around bug 41999.
38 if (window.testRunner) {
39 runAfterLayoutAndPaint(function() {
40 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
41 testRunner.notifyDone();
42 });
45 </script>
46 </head>
47 <body>
49 <!-- Test with already-composited iframe, and iframe contents becoming composited. -->
50 <iframe id="parent-iframe" src="resources/enter-compositing-subframe.html"></iframe>
52 <div class="overlay">
53 </div>
55 <pre id="layers">Layer tree appears here in DRT.</pre>
56 </body>
57 </html>