<!DOCTYPE html>
<title>Modal dialog inside iframe should not generate box</title>
<link rel=match href="modal-dialog-in-iframe-ref.html">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/6939">
<link rel=help href="https://fullscreen.spec.whatwg.org/#new-stacking-layer">
<style>
dialog {
  background: red;
  border-color: red;
}
</style>
<iframe></iframe>
<script>
  const iframe = document.querySelector('iframe');
  const dialog = document.createElement('dialog');
  iframe.appendChild(dialog);
  dialog.showModal();
</script>
