summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/container-queries/crashtests/dialog-backdrop-crash.html
blob: 3bbdf160cf68c875c1c1602a96da7903c11bc61d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<style>
  html {
    overflow: hidden;
  }

  dialog {
    container-type: size;
    width: 100px;
    height: 100px;
  }

  @container (width > 1px) {
    dialog::backdrop {
      margin: 10px;
      background-color: green;
    }
  }
</style>
<dialog id=dialog>
  Hello World
</dialog>
<script>
  dialog.showModal();
</script>