blob: 5507b744d3060662dfef5860e52889a6b378077e [file] [log] [blame]
<!DOCTYPE html>
<script src='../../resources/testharness.js'></script>
<script src='../../resources/testharnessreport.js'></script>
<div id="host"></div>
<script>
test(() => {
const host = document.querySelector('#host');
const shadowRoot = host.attachShadow({'mode': 'open'});
const slot = document.createElement('slot');
shadowRoot.appendChild(slot);
host.appendChild(document.createElement('div'));
document.body.offsetLeft;
host.appendChild(document.createTextNode('hello'));
document.body.offsetLeft;
assert_true(true, 'This test must run without crash.');
});
</script>