blob: 188d6394e99c50fa865ad9a045212a34f2c5d4d2 [file] [log] [blame]
<!DOCTYPE html>
.box {
position: relative;
left: 0;
height: 100px;
width: 100px;
margin: 10px;
background-color: blue;
transition-property: left;
transition-duration: 0.05s;
-webkit-transition-property: left;
-webkit-transition-duration: 0.05s;
<script src="transition-end-event-helpers.js"></script>
<script type="text/javascript">
var expectedEndEvents = [
// [property-name, element-id, elapsed-time, listen]
["left", "box1", 0.05, false]
function setupTest()
var box = document.getElementById('box1');
document.addEventListener('transitionend', recordTransitionEndEvent, false); = '200px';
runTransitionTest(expectedEndEvents, setupTest);
<p>Initiating a transition and catching the transition unprefixed event.</p>
<div id="container">
<div id="box1" class="box"></div>
<div id="result"></div>