15 background-color: blue;
20 background-color: green;
27 <p>Bug
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=105489">105489</a>: Elements must be reattached when inserted/removed from top layer
28 <p>The test passes if you see a green rectangle stacked on top of a blue rectangle.
30 <dialog id=
"topDialog"></dialog>
31 <dialog id=
"bottomDialog"></dialog>
33 var topDialog
= document
.getElementById('topDialog');
34 var bottomDialog
= document
.getElementById('bottomDialog');
35 topDialog
.showModal();
36 bottomDialog
.showModal();
37 topDialog
.offsetTop
; // force a layout
39 topDialog
.showModal();