15 <iframe src=
"data:text/html;charset=utf-8,<html><body style='width:1000px; height:1000px;'><p style='font-size: 6px'>Should be covered by a green overlay.</p></body></html>"></iframe>
16 <div id=
"console"></div>
18 <script src=
"../resources/js-test.js"></script>
19 <script src=
"../resources/run-after-layout-and-paint.js"></script>
20 <script src=
"resources/non-fast-scrollable-region-testing.js"></script>
22 window
.jsTestIsAsync
= true;
23 description('This test ensures non-fast scrollable areas are calculated ' +
24 'correctly when a CSS scale transformation is applied.');
27 runAfterLayoutAndPaint(function(){
28 nonFastScrollableRects
= window
.internals
.nonFastScrollableRects(document
);
29 shouldBe('nonFastScrollableRects.length', '1');
30 shouldBeEqualToString('rectToString(nonFastScrollableRects[0])', '[150, 150, 240, 240]');
32 drawNonFastScrollableRegionOverlays();