41 <p>This tests that plugins do not appear on top of top layer elements. The test
42 passes if you see four boxes, whose stacking order is (from top to bottom):
43 pink, green, yellow, blue. The pink box is positioned in a way to make it clear
44 that it is on top of everything else.
</p>
45 <embed src=
"../../LayoutTests/plugins/resources/simple_blank.swf"
46 type=
"application/x-shockwave-flash"
47 width=
"300" height=
"300" loop=
"false">
52 function dialogIsEnabled() {
53 return !!document
.createElement('dialog').showModal
;
57 if (!dialogIsEnabled()) {
58 document
.body
.innerText
= 'ERROR: <dialog> is not enabled. This test requires <dialog>.';
62 dialog
= document
.querySelector('dialog');