Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(848)

Side by Side Diff: third_party/WebKit/LayoutTests/dialog/scrollable-after-close.html

Issue 2437303002: Fix unscrollable scrollers after closing a <dialog>. (Closed)
Patch Set: address review comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/dialog/scrollable-after-close-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/dialog/scrollable-after-close-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698