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
   26
   27

content / test / data / accessibility / html / modal-dialog-opened.html [blame]

<!--
@AURALINUX-ALLOW:modal
-->
<html>
<body>
Test for modal dialog blocking a document.
<section>
  <dialog id="top-dialog">
    The dialog subtree should be the only text content in the accessibility tree.
    <a name="anchor" href="#link">Link inside the dialog.</a>
  </dialog>
  <select>
    <optgroup label="Group">
      <option>This should be pruned out of the tree.</option>
    </optgroup>
  </select>
</section>
<input type=file>
<dialog id="bottom-dialog">
  This is the pending dialog and should be pruned out.
</dialog>
<script>
document.querySelector('#bottom-dialog').showModal();
document.querySelector('#top-dialog').showModal();
</script>
</body>
</html>