blob: 6d1ad4d97a4d30a986519e9b20eebb63a739cef9 [file] [log] [blame]
<html>
<head>
<style>
.box {
position: relative;
left: 0;
height: 100px;
width: 100px;
margin: 10px;
background-color: blue;
-webkit-transition-property: left;
-webkit-transition-duration: 0.5s;
}
</style>
<script src="transition-end-event-helpers.js"></script>
<script type="text/javascript">
var expectedEndEvents = [
// [property-name, element-id, elapsed-time, listen]
["left", "box1", 0.5]
];
function setupTest()
{
var box = document.getElementById('box1');
box.style.left = '200px';
}
runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
<body>
<p>Initiating a 500ms transition on the left property of box1.</p>
<div id="container">
<div id="box1" class="box" onwebkittransitionend="recordTransitionEndEvent(event);"></div>
</div>
<div id="result"></div>
</body>
</html>