Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / iframe-double-scale-contents.html
blob8a84239bf25244ac20eef87e02cd81c7333e9141
1 <html>
2 <head>
3 <style>
4 ::-webkit-scrollbar {
5 width: 0px;
6 height: 0px;
8 </style>
9 <script src="../../resources/js-test.js"></script>
10 <script>
11 window.enablePixelTesting = true;
13 if (window.testRunner)
14 testRunner.waitUntilDone();
16 // Layout for the iframe will be scaled down to a quarter.
17 // It appears this bug will only manifest itself if layout for the
18 // iframe has not yet been computed. If we've already laid out
19 // the iframe, then CSSStyleSelector::styleForDocument does not appear
20 // to get called for the iframe.
21 scalePage(0.5);
23 function scalePage(scaleFactor) {
24 if (window.internals) {
25 window.internals.setPageScaleFactor(scaleFactor);
29 function test() {
30 // Curiously, the document style for the iframe does not
31 // appear to be recalculated after this
32 scalePage(1.0);
33 document.body.offsetWidth;
34 if (window.testRunner)
35 testRunner.notifyDone();
37 </script>
38 <script src="../../resources/js-test.js"></script>
39 </head>
40 <body onload="test();">
41 <iframe id="frame" src="resources/iframe-content-scaling-bug-iframe.html" style="position: absolute; left: 0px; top: 0px; border: none; width: 300px; height: 300px;"></iframe>
42 <div id="rightbox" style="position: absolute; left: 300px; top: 0px; width: 300px; height: 300px; background-color: green;"></div>
43 </body>
44 </html>