/p>
        <button onclick="returnFocus.close()">Close</button>
      </simple-overlay>
    </template>
  </demo-snippet>

  <h3>The child with <code>autofocus</code> gets focused when opening the overlay.</h3>
  <demo-snippet>
    <template>
      <button onclick="withAutofocus.open()">Overlay with autofocus child</button>
      <simple-overlay id="withAutofocus">
        <p>Hello world!</p>
        <button autofocus>autofocus</button>
        <button onclick="withAutofocus.close()">Close</button>
      <