blob: fffcb4069075ca692f7a91999ebdef92b6806c5e [file] [log] [blame]
<!DOCTYPE HTML>
<!--
This test creates a scenario where we attempt to squash into a layer that
paints into its composited ancestor. This should not crash.
It also happens that we shouldn't promote |container| in this case as its
composited descendants are invisible, but that's a separate bug. See,
crbug.com/403894.
-->
<style>
body {
will-change: transform;
}
#overlapper {
width: 400px;
height: 400px;
left: 200px;
background: gray;
position: absolute;
will-change: transform;
}
#container {
-webkit-perspective: 1400px;
position: absolute;
width: 180px;
height: 180px;
background: papayawhip;
}
#composited {
width: 100px;
height: 100px;
left: 200px;
background: green;
position: absolute;
transform: translateZ(10px);
visibility: hidden;
}
#squashed {
position: absolute;
width: 50px;
height: 50px;
background: blue;
}
</style>
<div id="overlapper"></div>
<div id="container">
<div id="composited"></div>
</div>
<div id="squashed"></div>
THIS TEST PASSES IF IT DOES NOT CRASH