top-layer-position-ref.html (283B)
1 <!DOCTYPE html> 2 3 <style> 4 dialog { 5 background-color: green; 6 height: 50px; 7 width: 50px; 8 border: none; 9 padding: 0; 10 margin: 0; 11 12 position: absolute; 13 top: 100px; 14 left: 100px; 15 } 16 </style> 17 18 <dialog></dialog> 19 20 <script> 21 document.querySelector('dialog').showModal(); 22 </script>