Copy HTML
<div class="backdrop-demo">
<button type="button" commandfor="baseline-backdrop-dialog" command="show-modal">
Open modal
</button>
<dialog id="baseline-backdrop-dialog" closedby="none">
<h2>Modal with backdrop</h2>
<p>This dialog is opened and closed with command and commandfor.</p>
<button type="button" commandfor="baseline-backdrop-dialog" command="close">
Close
</button>
</dialog>
</div>