| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 if (window.internals) | 5 if (window.internals) |
| 6 internals.settings.setDialogElementEnabled(true); | 6 internals.settings.setDialogElementEnabled(true); |
| 7 </script> | 7 </script> |
| 8 <style> | 8 <style> |
| 9 .green-box { | 9 .green-box { |
| 10 background-color: green; | 10 background-color: green; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 top: 100px; | 26 top: 100px; |
| 27 left: 150px; | 27 left: 150px; |
| 28 } | 28 } |
| 29 | 29 |
| 30 #right-dialog { | 30 #right-dialog { |
| 31 position: static; | 31 position: static; |
| 32 top: 100px; | 32 top: 100px; |
| 33 left: 200px; | 33 left: 200px; |
| 34 } | 34 } |
| 35 </style> | 35 </style> |
| 36 <script src="../../../resources/check-layout.js"></script> |
| 36 </head> | 37 </head> |
| 37 <body> | 38 <body onload="checkLayout('dialog')"> |
| 38 <p>Bug <a href="http://webkit.org/b/106538">106538</a>: Top layer fails for inli
ne elements | 39 <p>Bug <a href="http://webkit.org/b/106538">106538</a>: Top layer fails for inli
ne elements |
| 39 <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> | 40 <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> |
| 40 <div id="left-div" class="green-box"></div> | 41 <div id="left-div" class="green-box"></div> |
| 41 <dialog id="middle-dialog" class="green-box"></dialog> | 42 <dialog id="middle-dialog" class="green-box" data-offset-x="150" data-offset-y="
100"></dialog> |
| 42 <dialog id="right-dialog" class="green-box"></dialog> | 43 <dialog id="right-dialog" class="green-box" data-offset-x="200" data-offset-y="1
00"></dialog> |
| 43 <script> | 44 <script> |
| 44 document.getElementById('middle-dialog').showModal(); | 45 document.getElementById('middle-dialog').showModal(); |
| 45 var rightDialog = document.getElementById('right-dialog'); | 46 var rightDialog = document.getElementById('right-dialog'); |
| 46 rightDialog.showModal(); | 47 rightDialog.showModal(); |
| 47 rightDialog.style.position = 'absolute'; | 48 rightDialog.style.position = 'absolute'; |
| 48 </script> | 49 </script> |
| 49 </body> | 50 </body> |
| 50 </html> | 51 </html> |
| OLD | NEW |