Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / iframes / scrolling-iframe.html
blobf549add2f50dfe6cab6074b9d125eb8356e38b30
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 function doTest()
34 runAfterLayoutAndPaint(function() {
35 document.getElementById('parent-iframe').contentWindow.scrollTo(80, 80);
36 if (window.testRunner) {
37 document.getElementById('layers').innerHTML = window.internals.layerTreeAsText(document);
38 testRunner.notifyDone();
40 });
43 window.addEventListener('load', doTest, false);
44 </script>
45 </head>
46 <body>
48 <!-- Test scrolling in the iframe -->
49 <iframe id="parent-iframe" src="resources/large-composited-subframe.html"></iframe>
51 <div class="overlay">
52 </div>
54 <pre id="layers">Layer tree appears here in DRT.</pre>
55 </body>
56 </html>