15 background-color: yellow;
21 background-color: blue;
28 background-color: green;
35 background-color: red;
42 This tests that top layer elements are stacked correctly even if nested in the DOM tree.
43 The test passes if you see no red rectangles and see
3 rectangles stacked in the following order (from bottom to top): yellow, blue, green.
45 <dialog id=
"topDialog">
46 <dialog id=
"middleDialog">
47 <dialog id=
"bottomDialog">
48 <dialog id=
"hiddenDialog" class=
"red">
49 <dialog id=
"hiddenDialogChild" class=
"red"></dialog>
55 document
.getElementById('hiddenDialogChild').showModal();
56 document
.getElementById('hiddenDialog').showModal();
57 document
.getElementById('bottomDialog').showModal();
58 document
.getElementById('middleDialog').showModal();
59 document
.getElementById('topDialog').showModal();
60 document
.getElementById('hiddenDialog').close();