Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / scrollingcoordinator / non-fast-scrollable-region-nested.html
blob81a003fd114f90aa54d11504107a47634cc261c7
1 <!DOCTYPE html>
2 <style>
3 body {
4 margin: 0;
6 iframe {
7 height: 900px;
8 width: 900px;
9 margin-left: 51px;
10 margin-top: 52px;
11 border: none;
13 </style>
15 <iframe id='iframe' src='resources/iframe-containing-non-fast-scrollables.html'></iframe>
17 <div id="console"></div>
19 <script src="../resources/js-test.js"></script>
20 <script src="resources/non-fast-scrollable-region-testing.js"></script>
21 <script>
22 window.jsTestIsAsync = true;
23 description('The test ensures that non-fast scrollable regions nested in ' +
24 'iframe are correctly offset by the iframe location.');
26 onload = function() {
27 nonFastScrollableRects = internals.nonFastScrollableRects(document);
28 shouldBe('nonFastScrollableRects.length', '3');
29 shouldBeEqualToString('rectToString(nonFastScrollableRects[0])', '[51, 102, 200, 200]');
30 shouldBeEqualToString('rectToString(nonFastScrollableRects[1])', '[51, 402, 211, 211]');
31 shouldBeEqualToString('rectToString(nonFastScrollableRects[2])', '[51, 702, 222, 222]');
33 drawNonFastScrollableRegionOverlays();
34 finishJSTest();
36 </script>