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

Side by Side Diff: LayoutTests/dialog/top-layer-stacking-correct-order-remove-readd.html

Issue 24493004: Make dialog::backdrop span the viewport by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 dialog { 5 dialog {
6 height: 100px; 6 height: 100px;
7 width: 100px; 7 width: 100px;
8 } 8 }
9 9
10 ::backdrop {
11 display: none;
12 }
13
10 #bottomDialog { 14 #bottomDialog {
11 background-color: blue; 15 background-color: blue;
12 top: 100px; 16 top: 100px;
13 } 17 }
14 18
15 #topDialog { 19 #topDialog {
16 background-color: green; 20 background-color: green;
17 top: 150px; 21 top: 150px;
18 left: 50px; 22 left: 50px;
19 } 23 }
20 </style> 24 </style>
21 </head> 25 </head>
22 <body> 26 <body>
23 <p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=105489">105489</a>: Elem ents must be reattached when inserted/removed from top layer 27 <p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=105489">105489</a>: Elem ents must be reattached when inserted/removed from top layer
24 <p>The test passes if you see a green rectangle stacked on top of a blue rectang le. 28 <p>The test passes if you see a green rectangle stacked on top of a blue rectang le.
25 29
26 <dialog id="topDialog"></dialog> 30 <dialog id="topDialog"></dialog>
27 <dialog id="bottomDialog"></dialog> 31 <dialog id="bottomDialog"></dialog>
28 <script> 32 <script>
29 var topDialog = document.getElementById('topDialog'); 33 var topDialog = document.getElementById('topDialog');
30 var bottomDialog = document.getElementById('bottomDialog'); 34 var bottomDialog = document.getElementById('bottomDialog');
31 topDialog.showModal(); 35 topDialog.showModal();
32 bottomDialog.showModal(); 36 bottomDialog.showModal();
33 topDialog.offsetTop; // force a layout 37 topDialog.offsetTop; // force a layout
34 topDialog.close(); 38 topDialog.close();
35 topDialog.showModal(); 39 topDialog.showModal();
36 </script> 40 </script>
37 </body> 41 </body>
38 </html> 42 </html>
OLDNEW
« no previous file with comments | « LayoutTests/dialog/top-layer-stacking.html ('k') | LayoutTests/dialog/top-layer-stacking-dynamic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698