st-container"></div>
  <script>
    function append_test_declaratively_with_invalid_ref_target(host_container, referenced_element_type) {
      host_container.setHTMLUnsafe(`
      <div id="host-id">
        <template shadowrootmode="open" shadowrootreferencetarget="invalid">
          <${referenced_element_type} id="target"></${referenced_element_type}>
        </template>
      </div>`);
      const host = host_container.firstElementChild;
      return host;
    }

    run_test_for_all_reflecting_properti