Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / plugins / large-to-small-composited-plugin.html
blob6bde5a1a9f2247ebc14b95ee9eff41fe5b2c4f39
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style type="text/css" media="screen">
5 embed {
6 width: 300px;
7 height: 150px;
8 border: 1px solid black;
11 embed.small {
12 height: 1px;
13 width: 1px;
16 .container {
17 height: 100px;
18 width: 200px;
19 overflow: hidden;
21 </style>
22 <script type="text/javascript" charset="utf-8">
23 if (window.testRunner) {
24 testRunner.dumpAsText();
25 testRunner.waitUntilDone();
28 function doTest()
30 window.setTimeout(function() {
31 document.getElementById('plugin').className = 'small';
32 // Need to wait for compositing layers to be updated.
33 window.setTimeout(function() {
34 if (window.testRunner) {
35 document.getElementById('result').textContent = window.internals.layerTreeAsText(document);
36 testRunner.notifyDone();
38 }, 0);
39 }, 0);
42 window.addEventListener('load', doTest, false);
43 </script>
44 </head>
45 <body>
47 <div class="container">
48 <embed id="plugin" type="application/x-webkit-test-netscape" width="1" height="1" drawingmodel="coreanimation">
49 </div>
51 <div id="result">Test only works in DRT</div>
52 </body>
53 </html>