blob: 9f2e0a88079e279085cc360602266c0d3e36b741 [file] [edit]
<!DOCTYPE html>
<html>
<head>
<style>
.fixed-no-z-index {
position: absolute;
left: 10px;
}
.fixed-with-z-index {
position: fixed;
z-index: 1;
left: 10px;
-webkit-transform:translateZ(0);
}
</style>
<script>
if (window.testRunner)
window.testRunner.waitUntilDone();
async function test() {
if (window.internals) {
window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
}
if (window.testRunner)
await window.testRunner.setPageScaleFactor(2, 0, 0);
window.scrollTo(100,100);
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.notifyDone();
}
}
</script>
</head>
<body onload="test()" style="width:2000px;height:2000px;">
<div class="fixed-no-z-index">This test should not hit an assertion in RenderGeometryMap in debug builds</div><br>
<div class="fixed-with-z-index">This test should not hit an assertion in RenderGeometryMap in debug builds</div>
</body>
</html>