blob: 010a0730cd12673de4e654d37d9d974f14d9f7bd [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
}
#container {
position: relative;
width: 400px;
height: 230px;
border: 1px solid black;
}
.box {
position: relative;
width: 100px;
height: 100px;
margin: 10px 0;
background-color: green;
}
#container.moved .software {
left: 300px;
}
#container.moved .hardware {
transform: translateX(300px);
}
.software {
-webkit-transition: left 300ms linear;
}
.hardware {
-webkit-transition: transform 1s linear;
transform: translateX(0);
}
</style>
<script src="../animations/resources/animation-test-helpers.js"></script>
<script>
function testEnded()
{
if (window.testRunner)
testRunner.notifyDone();
}
function startTest()
{
if (window.testRunner)
testRunner.waitUntilDone();
document.getElementById('tester').addEventListener('webkitTransitionEnd', testEnded, false);
document.getElementById('container').className = 'moved';
}
window.addEventListener('load', startTest, false);
</script>
</head>
<body>
<div id="container">
<!-- <div class="software box"></div> -->
<div id="tester" class="hardware box"></div>
</div>
<div id="result">
</div>
</body>
</html>