blob: b72e9adfdab43a4859550232d55a63438b3597ce [file] [log] [blame]
<!DOCTYPE html>
<html>
<!-- This checks the overlap test between render layers inside clipped
containers and other render layers when page scaling is used. See
https://bugs.webkit.org/show_bug.cgi?id=76850 -->
<script>
window.onload = function() {
if (window.testRunner)
testRunner.dumpAsTextWithPixelResults();
if (window.internals) {
window.internals.setPageScaleFactorLimits(0.5, 0.5);
window.internals.setPageScaleFactor(0.5);
}
}
</script>
<style type="text/css">
::-webkit-scrollbar {
width: 0px;
height: 0px;
}
body {
width: 4000px;
height: 4000px;
}
.box {
width: 100px;
height: 100px;
}
.positioned {
position: absolute;
left: 400px;
}
.transformed {
transform: translateZ(0);
}
.clip {
overflow: hidden;
}
.test {
z-index: 1;
background-color: green;
}
.indicator {
background-color: red;
}
</style>
<div class="positioned test box"></div>
<div class="positioned clip box">
<div class="transformed indicator box"></div>
</div>
</html>