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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/dialog/modal-dialog-scroll-height-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 <style>
3 body {
4 margin: 0;
5 }
6 .spacer {
7 height: 500px;
8 }
9 dialog {
10 border: 0;
11 margin: 0;
12 padding: 1px;
13 }
14 </style>
15 <div class="spacer"></div>
16 <dialog>
17 <div class="spacer"></div>
18 </dialog>
19 <script src="../resources/js-test.js"></script>
20 <script>
21
22 document.querySelector('dialog').showModal();
23 shouldBe('600', String(document.body.scrollHeight));
24
25 if (window.testRunner)
26 testRunner.dumpAsText();
27
28 </script>
OLDNEW
« 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