chromium/third_party/blink/web_tests/external/wpt/html/semantics/interactive-elements/the-dialog-element/top-layer-position-relative.html

<!DOCTYPE html>
<link rel=author href="mailto:[email protected]">
<link rel=author href="mailto:[email protected]">
<link rel=help href="https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element">
<link rel=help href="https://bugs.webkit.org/show_bug.cgi?id=106538">
<link rel=match href="top-layer-position-ref.html">
<meta name=assert content="Position relative computes to absolute in the top layer for dialog elements.">

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

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

<dialog></dialog>

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