| Index: LayoutTests/dialog/dialogs-with-no-backdrop.html
|
| diff --git a/LayoutTests/dialog/dialogs-with-no-backdrop.html b/LayoutTests/dialog/dialogs-with-no-backdrop.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8912d636219b773a440edc5ba0485deb3e8fa90e
|
| --- /dev/null
|
| +++ b/LayoutTests/dialog/dialogs-with-no-backdrop.html
|
| @@ -0,0 +1,31 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +dialog::backdrop {
|
| + position: absolute;
|
| + top: 100px;
|
| + left: 100px;
|
| + height: 100px;
|
| + width: 100px;
|
| + background: red;
|
| +}
|
| +
|
| +#display-none-backdrop::backdrop {
|
| + display: none;
|
| +}
|
| +</style>
|
| +<body>
|
| +Test that ::backdrop is not shown for non-open or non-modal dialogs.
|
| +The test passes if there is no red shown.
|
| +<dialog id="never-opened-dialog"></dialog>
|
| +<dialog id="display-none-dialog" style="display: none"></dialog>
|
| +<dialog id="non-modal-dialog" style="visibility: hidden"></dialog>
|
| +<dialog id="display-none-backdrop" style="visibility: hidden"></dialog>
|
| +<dialog id="closed-dialog"></dialog>
|
| +<script>
|
| +document.getElementById('display-none-dialog').showModal();
|
| +document.getElementById('non-modal-dialog').show();
|
| +document.getElementById('display-none-backdrop').showModal();
|
| +document.getElementById('closed-dialog').showModal();
|
| +document.getElementById('closed-dialog').close();
|
| +</script>
|
| +</body>
|
|
|