<p>WHAT: A modal dialog opening another modal dialog (including a datepicker), opening a non-modal dialog (including an autocomplete with tooltip applied). A regular link on the page, outside of the dialogs.</p>
<p>EXPECTED: As long as a modal dialog is open, focus stays within the dialogs. Both mouse and keyboard interactions are captured and restricted to the dialog. When the nested modal dialog is open, the first modal dialog can't be interacted with, until the nested dialog is closed. When the third dialog is open (not modal), switching between the two dialogs is possible, both can be interacted with.</p>
<ahref="#">Outside link</a>
<divid="dialog"title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
<p><buttonid="open-datepicker">Open another window with a datepicker.</button></p>
</div>
<divid="dialog-datepicker"title="A dialog with a datepicker">
<p>Date: <inputid="datepicker"></p>
<p><buttonid="open-autocomplete">Open another window with an autocomplete and a tooltip.</button></p>