summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/backdrop-animate-002-ref.html
blob: b4f0ebd4b8072368a336942fe9cf24c6d56c6c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<meta charset="utf-8">
<dialog id="target">Dialog contents</dialog>
<style>
#target::backdrop {
  opacity: 0.1;
  background-color: green;
}
</style>
<script>
const target = document.getElementById("target");
target.showModal();
</script>