Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / iframes / iframe-composited-scrolling-hide-and-show.html
bloba6bddfb5fbe5d857213f50244472b3c6a89584cc
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
4 <style>
5 iframe {
6 height: 100px;
7 width: 100px;
9 </style>
11 <script>
12 description('This test makes sure hiding and showing a scrollable iframe ' +
13 'correctly updates the set of non-fast scrollable rects.');
15 onload = function() {
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');
28 </script>
30 <iframe id="scrollable-iframe" src="resources/subframe.html"></iframe>