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

Side by Side Diff: LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-scrolled-viewport-expected.html

Issue 14373010: Make abspos <dialog>'s containing block be the ICB. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .pseudodialog {
6 position: absolute;
7 left: 0; right: 0;
8 margin: auto;
9 border: solid;
10 padding: 1em;
11 background: white;
12 color: black;
13 }
14 </style>
15 </head>
16 <body style="height: 10000px; width: 10000px">
17 <p style="position: fixed">
18 This tests that a dialog's containing block is the initial containing block.
19 The dialog is positioned at (1200, 1200) and the window is scrolled to (1000,
20 1000) so the dialog should be positioned at (200, 200) relative to the viewport.
21 </p>
22 <div class="pseudodialog" style="top: 1200px; left: 1200px; right: auto; height: 250px; width: 50%; background-color: yellow">
23 This dialog should be onscreen with a width of 50% of the viewport. It is th e child of an narrow element
24 positioned off screen, but its containing block is the initial containing bl ock, so its
25 position and percent lengths are relative to that.
26 </div>
27 <script>
28 window.scroll(1000, 1000);
29 </script>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698