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

Unified Diff: LayoutTests/dialog/modal-dialog-scroll-height.html

Issue 574143002: Center dialogs before computing overflow. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/dialog/modal-dialog-scroll-height-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dialog/modal-dialog-scroll-height.html
diff --git a/LayoutTests/dialog/modal-dialog-scroll-height.html b/LayoutTests/dialog/modal-dialog-scroll-height.html
new file mode 100644
index 0000000000000000000000000000000000000000..71053e21907c41a47614d1b2e8de35848d55e646
--- /dev/null
+++ b/LayoutTests/dialog/modal-dialog-scroll-height.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0;
+}
+.spacer {
+ height: 500px;
+}
+dialog {
+ border: 0;
+ margin: 0;
+ padding: 1px;
+}
+</style>
+<div class="spacer"></div>
+<dialog>
+ <div class="spacer"></div>
+</dialog>
+<script src="../resources/js-test.js"></script>
+<script>
+
+document.querySelector('dialog').showModal();
+shouldBe('600', String(document.body.scrollHeight));
+
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+</script>
« no previous file with comments | « no previous file | LayoutTests/dialog/modal-dialog-scroll-height-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698