blob: 2d45a6bf9c219a29c3219f315d9b578ea6a7e877 [file] [edit]
<!DOCTYPE html>
<title>A content change inside a composited box that an earlier sibling pushed down must repaint in the right place. https://bugs.webkit.org/show_bug.cgi?id=23308</title>
<script src="../../resources/ui-helper.js"></script>
<style>
body {
margin: 0;
font: 20px/1 Ahem;
}
.repaint-container {
transform: translateZ(0);
}
.flex {
display: flex;
}
#upper {
background: yellow;
}
#lower {
background: green;
}
</style>
<div id=upper></div>
<div class="repaint-container flex">
<div id=lower>TEST</div>
</div>
<script>
window.testRunner?.waitUntilDone();
window.testRunner?.dontForceRepaint();
async function runTest() {
await UIHelper.renderingUpdate();
upper.style.height = "1em"; // pushes the composited box down
lower.innerHTML = "TEST CASE";
await UIHelper.renderingUpdate();
await UIHelper.renderingUpdate();
window.testRunner?.notifyDone();
}
window.addEventListener('load', runTest);
</script>