blob: 7c6ac49fc06f1af59858bfe748b2fa24bd948bba [file] [edit]
<script src="../../resources/ui-helper.js"></script>
<style>
img {
width: 40px;
height: 30px;
background-color: green;
}
</style>
<div id=container>before<span><div id=change_this>change this text</div></span>after</div>
<script>
window.testRunner?.waitUntilDone();
window.addEventListener('load', async () => {
document.body.offsetHeight;
await UIHelper.renderingUpdate();
container.appendChild(document.createElement("img"));
change_this.innerText = "PASS if no crash or assert";
window.testRunner?.notifyDone();
}, false);
</script>