Skip to content

Truly independent web browser

1.1 KB
Raw Blame
<!DOCTYPE HTML>
<html>
<head>
  <script src="../../../html/resources/common.js"></script>
  <script src="../../../resources/testharness.js"></script>
  <script src="../../../resources/testharnessreport.js"></script>
  <script src="../../../resources/testdriver.js"></script>
  <script src="../../../resources/testdriver-vendor.js"></script>
  <script src="../../../resources/testdriver-actions.js"></script>
  <script src="../../../wai-aria/scripts/aria-utils.js"></script>
  <script src="resources/property-reflection-helper.js"></script>
</head>
<body>
  <div id="host-container"></div>
  <script>
    function append_test_imperatively(host_container, referenced_element_type) {
      host_container.setHTMLUnsafe('<div id="host-id"></div>');
      const host = host_container.firstElementChild;
      host.attachShadow({ mode: 'open', referenceTarget: 'target' });
      host.shadowRoot.innerHTML = `<${referenced_element_type} id="target"></${referenced_element_type}>`;
      return host;
    }

    run_test_for_all_reflecting_properties(append_test_imperatively, test_property_reflection, " with imperative setup");
  </script>
</body>
</html>