blob: 4bac84ea81efbedb12dfd794b9dd94bcff69403b [file] [log] [blame]
<html>
<head>
<title>Transition End Events</title>
<style type="text/css" media="screen">
.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="end-event-helpers.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
var expected = [
['left', 'box1', 'webkitTransitionEnd', 0.5]
];
function startTransition()
{
var boxes = document.body.getElementsByClassName('box');
for (var i = 0; i < boxes.length; ++i) {
boxes[i].style.left = '200px';
}
window.setTimeout(cleanup, 700);
}
window.addEventListener('load', startTransition, false);
</script>
</head>
<body>
<p>Initiating a 500ms transition on the left property of box1.</p>
<div id="container">
<div id="box1" class="box" onwebkittransitionend="recordEvent(event);"></div>
</div>
<div id="result"></div>
</body>
</html>