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

Side by Side Diff: third_party/WebKit/LayoutTests/html/dialog/top-layer-position-relative.html

Issue 2671603003: Move DIALOG element tests to html/dialog/. (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .green-box { 5 .green-box {
6 background-color: green; 6 background-color: green;
7 height: 50px; 7 height: 50px;
8 width: 50px; 8 width: 50px;
9 border: none; 9 border: none;
10 padding: 0; 10 padding: 0;
(...skipping 11 matching lines...) Expand all
22 top: 100px; 22 top: 100px;
23 left: 150px; 23 left: 150px;
24 } 24 }
25 25
26 #right-dialog { 26 #right-dialog {
27 position: relative; 27 position: relative;
28 top: 100px; 28 top: 100px;
29 left: 200px; 29 left: 200px;
30 } 30 }
31 </style> 31 </style>
32 <script src="../../../resources/check-layout.js"></script> 32 <script src="../../resources/check-layout.js"></script>
33 </head> 33 </head>
34 <body onload="checkLayout('dialog')"> 34 <body onload="checkLayout('dialog')">
35 <p>Bug <a href="http://webkit.org/b/106538">106538</a>: Top layer fails for inli ne elements 35 <p>Bug <a href="http://webkit.org/b/106538">106538</a>: Top layer fails for inli ne elements
36 <p>This tests that position 'relative' computes to 'absolute' in the top layer. The test passes if you see a single green box.</p> 36 <p>This tests that position 'relative' computes to 'absolute' in the top layer. The test passes if you see a single green box.</p>
37 <div id="left-div" class="green-box"></div> 37 <div id="left-div" class="green-box"></div>
38 <dialog id="middle-dialog" class="green-box" data-offset-x="150" data-offset-y=" 100"></dialog> 38 <dialog id="middle-dialog" class="green-box" data-offset-x="150" data-offset-y=" 100"></dialog>
39 <dialog id="right-dialog" class="green-box" data-offset-x="200" data-offset-y="1 00"></dialog> 39 <dialog id="right-dialog" class="green-box" data-offset-x="200" data-offset-y="1 00"></dialog>
40 <script> 40 <script>
41 document.getElementById('middle-dialog').showModal(); 41 document.getElementById('middle-dialog').showModal();
42 var rightDialog = document.getElementById('right-dialog'); 42 var rightDialog = document.getElementById('right-dialog');
43 rightDialog.showModal(); 43 rightDialog.showModal();
44 rightDialog.style.position = 'absolute'; 44 rightDialog.style.position = 'absolute';
45 </script> 45 </script>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698