Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / iframes / enter-compositing-iframe.html
blob0cbfc195fe56ffbcca1806a676d70e94f4dfb69a
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 .overlay {
17 position: absolute;
18 width: 50px;
19 height: 50px;
20 top: 5px;
21 left: 5px;
22 background-color: rgba(0, 0, 0, 0.2);
25 </style>
26 <script type="text/javascript" charset="utf-8">
27 if (window.testRunner) {
28 testRunner.dumpAsText();
29 testRunner.waitUntilDone();
32 // Called from subframe.
33 function testDone()
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();
40 });
43 </script>
44 </head>
45 <body>
47 <!-- The parent document may into compositing mode by the iframe. -->
48 <iframe id="parent-iframe" src="resources/enter-compositing-subframe.html"></iframe>
50 <div class="overlay">
51 </div>
53 <pre id="layers">Layer tree appears here in DRT.</pre>
54 </body>
55 </html>