12 #display-none-backdrop::backdrop {
17 Test that ::backdrop is not shown for non-open or non-modal dialogs.
18 The test passes if there is no red shown.
19 <dialog id=
"never-opened-dialog"></dialog>
20 <dialog id=
"display-none-dialog" style=
"display: none"></dialog>
21 <dialog id=
"non-modal-dialog" style=
"visibility: hidden"></dialog>
22 <dialog id=
"display-none-backdrop" style=
"visibility: hidden"></dialog>
23 <dialog id=
"closed-dialog"></dialog>
24 <dialog id=
"removed-dialog"></dialog>
26 document
.getElementById('display-none-dialog').showModal();
27 document
.getElementById('non-modal-dialog').show();
28 document
.getElementById('display-none-backdrop').showModal();
30 var closedDialog
= document
.getElementById('closed-dialog');
31 closedDialog
.showModal();
34 var removedDialog
= document
.getElementById('removed-dialog');
35 removedDialog
.showModal();
36 removedDialog
.parentNode
.removeChild(removedDialog
);