| Index: third_party/WebKit/LayoutTests/dialog/scrollable-after-close.html
|
| diff --git a/third_party/WebKit/LayoutTests/dialog/scrollable-after-close.html b/third_party/WebKit/LayoutTests/dialog/scrollable-after-close.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..567fba734960fbdd2527ed665e6b228441f7af0a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/dialog/scrollable-after-close.html
|
| @@ -0,0 +1,35 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/js-test.js"></script>
|
| +<style>
|
| +html, body { height: 100%; margin: 0; overflow: hidden; }
|
| +#scroller {
|
| + overflow: scroll;
|
| + position: relative;
|
| + z-index: 0;
|
| + width: 300px;
|
| + height: 50%;
|
| + left: 20px;
|
| + top: 20px;
|
| + border: 1px solid black;
|
| +}
|
| +</style>
|
| +<dialog></dialog>
|
| +<div id="scroller">
|
| + <div style="height: 700px; width: 700px"></div>
|
| +</div>
|
| +<script>
|
| +
|
| +description("Tests that FrameView::m_scrollableAreas is updated after " +
|
| + "closing a modal dialog when the scroller and its ancestors " +
|
| + "have percentage heights. (see crbug.com/633520)");
|
| +
|
| +var dialog = document.querySelector("dialog");
|
| +dialog.showModal();
|
| +dialog.close();
|
| +
|
| +// Force layout.
|
| +document.body.offsetWidth;
|
| +
|
| +shouldBe("internals.numberOfScrollableAreas(document)", "1");
|
| +
|
| +</script>
|
|
|