blob: 6512b71d8aa54a3c61012e6412461b3281e4c39b [file] [log] [blame]
<!DOCTYPE html>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function paintInvalidationTest() {
document.getElementById('overflow1').style.overflow = "visible";
document.getElementById('overflow2').style.overflow = "hidden";
}
onload = runPaintInvalidationTest;
</script>
<style>
body {
margin: 0;
}
#overflow1 {
overflow: hidden;
width: 200px;
height: 200px;
}
#overflow2 {
overflow: visible;
width: 200px;
height: 200px;
}
.composited-child {
width: 100px;
height: 100px;
background-color: green;
backface-visibility: hidden;
}
.overflow-child {
position: relative;
top: 50px;
left: 150px;
}
</style>
<!-- We should not repaint composited descendants on overflow style changes (verified with the text expectation).
The compositor should handle any visual change caused by the change of overflow clipping (verified with the pixel expectation). -->
<div id="overflow1">
<div class="composited-child"></div>
<div class="composited-child overflow-child"></div>
</div>
<div id="overflow2">
<div class="composited-child"></div>
<div class="composited-child overflow-child"></div>
</div>