summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/modal-dialog-backdrop-opacity.html
blob: 09c31ce2af95a4fde0024605cc1cdb4453e7d476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<link rel="match" href="modal-dialog-backdrop-opacity-ref.html">
<link rel="help" href="https://fullscreen.spec.whatwg.org/#user-agent-level-style-sheet-defaults">
<style>
dialog::backdrop {
    background-color: rgb(0, 128, 0);
    opacity: 0.5;
}
dialog:focus {
  outline: none;
}
</style>
<body>
<dialog>Test passes if you see a green backdrop at half opacity.</dialog>
<script>
document.querySelector('dialog').showModal();
</script>
</body>