blob: e0f4c362be3d7653cc080ab1b37b42fcf065f08a [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=false ] -->
<html>
<head>
<style>
.container {
position: relative;
height: 200px;
width: 500px;
border: 1px solid black;
overflow: hidden;
z-index: 0;
}
.box {
position: absolute;
width: 200px;
height: 200px;
background-color: blue;
}
.box.animating {
-webkit-animation: move 20000000s linear;
}
@-webkit-keyframes move {
from { -webkit-transform: translateX(-100px); }
to { -webkit-transform: translateX(300px); }
}
</style>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function doTest()
{
let animated = document.getElementById('animated');
animated.addEventListener('webkitAnimationStart', function() {
if (window.internals)
document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS)
if (window.testRunner)
testRunner.notifyDone();
}, false);
animated.classList.add('animating');
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="container">
<div id="animated" class="box"></div>
</div>
<pre id="layers">Layer tree goes here when testing</pre>
</body>
</html>