2 <script src=
"../../resources/js-test.js"></script>
12 description('This test makes sure hiding and showing a scrollable iframe ' +
13 'correctly updates the set of non-fast scrollable rects.');
16 if (window
.internals
) {
17 var frame
= document
.getElementById('scrollable-iframe');
18 document
.body
.offsetTop
; // Force layout
19 shouldBe('internals.nonFastScrollableRects(document).length', '1');
20 frame
.style
.display
= 'none';
21 document
.body
.offsetTop
; // Force layout
22 shouldBe('internals.nonFastScrollableRects(document).length', '0');
23 frame
.style
.display
= '';
24 document
.body
.offsetTop
; // Force layout
25 shouldBe('internals.nonFastScrollableRects(document).length', '1');
30 <iframe id=
"scrollable-iframe" src=
"resources/subframe.html"></iframe>