OLD | NEW |
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 Loading... |
22 top: 100px; | 22 top: 100px; |
23 left: 150px; | 23 left: 150px; |
24 } | 24 } |
25 | 25 |
26 #right-dialog { | 26 #right-dialog { |
27 position: static; | 27 position: static; |
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 'static' computes to 'absolute' in the top layer. Th
e test passes if you see a single green box.</p> | 36 <p>This tests that position 'static' computes to 'absolute' in the top layer. Th
e 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> |
OLD | NEW |