Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 15 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /shadow-dom/reference-target/tentative/property-reflection-imperative-setup.html - WPT Dashboard Interop Dashboard
<!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>