blob: 2d9430e31f00087b1e5ae2320a1a1eccd230a94c [file]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/ui-helper.js"></script>
<style>
#first {
width: 200px;
height: 200px;
position: absolute;
background-color: green;
transform: translateZ(0px);
}
#inner {
width: 50px;
height: 50px;
background-color: red;
}
</style>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
if (testRunner.dontForceRepaint)
testRunner.dontForceRepaint();
}
async function doTest()
{
await UIHelper.renderingUpdate();
window.internals.purgeFrontBuffer(document.getElementById('first'));
document.getElementById('inner').style.backgroundColor = "green";
await UIHelper.renderingUpdate();
if (window.testRunner)
testRunner.notifyDone();
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div id="first"><div id="inner"></div></div>
</body>
</html>