<!DOCTYPE html> | |
<script src="../../resources/testharness.js"></script> | |
<script src="../../resources/testharnessreport.js"></script> | |
<div id="host"><option></option></div> | |
<script> | |
test(() => { | |
const root = host.createShadowRoot(); | |
root.innerHTML = '<span style="display:none"><content /></span>'; | |
document.body.offsetTop; | |
root.firstChild.style.display = "block"; | |
}, "This test passes if there is no crash or DCHECK failure."); | |
</script> |