11 dialog::backdrop, embed {
23 dialog.top::backdrop {
44 dialog.bottom::backdrop {
58 <p>This tests that plugins in the top layer are occluded only by higher-stacked
59 top layer elements. The test passes if you see six boxes stacked on each other,
60 in order (from top to bottom): green, yellow, blue, green, yellow, blue.
63 <embed id=
"bottom-embed"
64 src=
"../../LayoutTests/plugins/resources/simple_blank.swf"
65 type=
"application/x-shockwave-flash"
66 width=
"300" height=
"300" loop=
"false">
68 <dialog class=
"bottom">
69 <embed src=
"../../LayoutTests/plugins/resources/simple_blank.swf"
70 type=
"application/x-shockwave-flash"
71 width=
"240" height=
"240" loop=
"false">
74 <dialog class=
"top"></dialog>
76 function dialogIsEnabled() {
77 return !!document
.createElement('dialog').showModal
;
81 if (!dialogIsEnabled()) {
82 document
.body
.innerText
= 'ERROR: <dialog> is not enabled. This test requires <dialog>.';
86 dialogBottom
= document
.querySelector('dialog.bottom');
87 dialogBottom
.showModal();
88 dialogTop
= document
.querySelector('dialog.top');
89 dialogTop
.showModal();