blob: c1b9ff66ad2b3eb9b14ab03cb6164fbe6d2bc48f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.set {
position: absolute;
top: 8px;
}
.box {
height: 100px;
width: 100px;
background-color: lightblue;
}
.squashed {
height: 40px;
width: 40px;
background-color: lightgreen;
position: absolute;
left: 16px;
}
.hidden {
visibility: hidden;
}
.visible {
visibility: visible;
}
.composited {
transform: translateZ(1px);
}
</style>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
requestAnimationFrame(function() {
requestAnimationFrame(function() {
document.getElementById('target1').classList.add('visible');
document.getElementById('target2').classList.add('visible');
setTimeout(function() {
if (window.testRunner)
testRunner.notifyDone();
});
});
});
</script>
</head>
<body>
<!-- This test checks that squashed Layers are painted even if not all
of the Layers squahed into a given GraphicsLayer are visible. -->
<div class="set">
<div class="composited box"></div>
<div class="squashed hidden" style="top: 4px"></div>
<div id="target1" class="squashed hidden" style="top: 54px"></div>
</div>
<div class="set" style="top: 116px">
<div class="composited box"></div>
<div id="target2" class="squashed hidden" style="top: 4px"></div>
<div class="squashed hidden" style="top: 54px"></div>
</div>
</body>
</html>