<!DOCTYPE html>
<html>
<head>
<link rel="match" href="top-layer-stacking-dynamic-ref.html">
<link rel="help" href="https://fullscreen.spec.whatwg.org/#new-stacking-layer">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-dialog-element">
<style>
dialog {
    height: 150px;
    width: 150px;
    outline: none;
}

::backdrop {
    display: none;
}

.red {
    background-color: red;
    top: 200px;
}

#bottomDialog {
    background-color: blue;
    top: 50px;
}

#topDialog {
    background-co