15 background-color: red;
20 background-color: blue;
25 background-color: green;
32 This tests top layer element stacking order after dynamically calling show/close and removal from the DOM tree.
33 The test passes if you see a green rectangle stacked on top of a blue rectangle, and see no red rectangles.
35 <dialog id=
"topDialog"></dialog>
36 <dialog id=
"bottomDialog"></dialog>
37 <dialog id=
"removedDialog" class=
"red">
38 <dialog id=
"removedDialogChild" class=
"red"></dialog>
41 document
.getElementById('topDialog').showModal();
42 var removedDialog
= document
.getElementById('removedDialog');
43 removedDialog
.showModal();
44 document
.getElementById('bottomDialog').showModal();
45 document
.getElementById('removedDialogChild').showModal();
46 removedDialog
.parentNode
.removeChild(removedDialog
);
47 document
.getElementById('topDialog').close();
48 document
.getElementById('topDialog').showModal();