summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/top-layer-position-ref.html
blob: 01eff8c4de5f1f5e6a951f177fd0e920ca289d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>

<style>
dialog {
  background-color: green;
  height: 50px;
  width: 50px;
  border: none;
  padding: 0;
  margin: 0;

  position: absolute;
  top: 100px;
  left: 100px;
}
</style>

<dialog></dialog>

<script>
document.querySelector('dialog').showModal();
</script>