Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Element / scale-page-client-rects-in-frame.html
blob41e40bd10e199e08a025f2d22d970f9a947b486f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function testRects()
7 if (!window.testRunner || !window.eventSender || !window.internals)
8 return;
9 testRunner.dumpAsText();
11 var div = document.getElementById("frame").contentDocument.getElementById("div");
12 var rect = div.getClientRects()[0];
13 window.internals.setPageScaleFactor(2);
14 var scaledRect = div.getClientRects()[0];
16 var result = document.getElementById("result");
17 if (rect.left == scaledRect.left &&
18 rect.top == scaledRect.top &&
19 rect.right == scaledRect.right &&
20 rect.bottom == scaledRect.bottom)
21 result.innerHTML = "Pass";
22 else
23 result.innerHTML = "Fail";
25 </script>
26 </head>
28 <body onload="testRects();">
29 <iframe id="frame" src="resources/client-rect-frame.html" width="300" height="200"></iframe>
30 <p id="result">This test must be run via DumpRenderTree.</p>
31 </body>
32 </html>