Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / iframes / become-composited-nested-iframes.html
blob41e82e9cf0aa8e9e28ed5a75a4278633a5303e2a
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 body {
8 height: 1500px;
9 margin: 0;
12 #box {
13 height: 100px;
14 width: 100px;
15 background-color: blue;
18 .composited {
19 transform: translateZ(0);
22 iframe {
23 display: block;
24 margin: 20px;
25 height: 200px;
26 width: 280px;
28 </style>
29 <script type="text/javascript" charset="utf-8">
30 if (window.testRunner) {
31 testRunner.dumpAsText();
32 testRunner.waitUntilDone();
35 function doTest()
37 if (window.testRunner) {
38 runAfterLayoutAndPaint(function() {
39 document.getElementById('box').className = 'composited';
40 document.getElementById('layers').innerHTML = window.internals.layerTreeAsText(document);
41 testRunner.notifyDone();
42 });
46 window.addEventListener('load', doTest, false);
47 </script>
48 </head>
49 <body>
50 <div id="box"></div>
52 <!-- Tests that when the main document becomes composited, all iframes containing
53 any composited content become composited -->
54 <iframe src="resources/intermediate-frame.html"></iframe>
55 <iframe src="resources/intermediate-frame.html"></iframe>
57 <pre id="layers">Layer tree appears here in DRT.</pre>
58 </body>
59 </html>