Copiar HTML
<div class="backdrop-demo">
<button type="button" commandfor="baseline-backdrop-dialog" command="show-modal">
Abrir modal
</button>
<dialog id="baseline-backdrop-dialog" closedby="none">
<h2>Modal con backdrop</h2>
<p>Este dialog se abre y se cierra con command y commandfor.</p>
<button type="button" commandfor="baseline-backdrop-dialog" command="close">
Cerrar
</button>
</dialog>
</div>