Chromium Code Reviews| 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..0223e6a15ee0c36d606a088c6f71fa6bd212b025 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/dialog/scrollable-after-close.html |
| @@ -0,0 +1,42 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
|
esprehn
2016/10/17 20:30:09
leave out html, head and body
|
| +<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> |
| +</head> |
| +<body> |
| +<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> |
| +</body> |
| +</head> |
| +</html> |