OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <script src="../resources/js-test.js"></script> | |
3 <style> | |
4 html, body { height: 100%; margin: 0; overflow: hidden; } | |
5 #scroller { | |
6 overflow: scroll; | |
7 position: relative; | |
8 z-index: 0; | |
9 width: 300px; | |
10 height: 50%; | |
11 left: 20px; | |
12 top: 20px; | |
13 border: 1px solid black; | |
14 } | |
15 </style> | |
16 <dialog></dialog> | |
17 <div id="scroller"> | |
18 <div style="height: 700px; width: 700px"></div> | |
19 </div> | |
20 <script> | |
21 | |
22 description("Tests that FrameView::m_scrollableAreas is updated after " + | |
23 "closing a modal dialog when the scroller and its ancestors " + | |
24 "have percentage heights. (see crbug.com/633520)"); | |
25 | |
26 var dialog = document.querySelector("dialog"); | |
27 dialog.showModal(); | |
28 dialog.close(); | |
29 | |
30 // Force layout. | |
31 document.body.offsetWidth; | |
32 | |
33 shouldBe("internals.numberOfScrollableAreas(document)", "1"); | |
34 | |
35 </script> | |
OLD | NEW |