1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
7 <title>Interrupted All Transition
</title>
8 <style type=
"text/css" media=
"screen">
13 border:
1px solid black;
19 background-color: blue;
20 -webkit-transition-duration:
1s;
21 -webkit-transition-timing-function: linear;
24 <script type=
"text/javascript" charset=
"utf-8">
25 if (window.layoutTestController) {
26 layoutTestController.dumpAsText();
27 layoutTestController.waitUntilDone();
30 function startTransition()
32 var box = document.getElementById('box');
33 box.style.left = '
300px';
34 box.style.opacity =
0.5;
35 window.setTimeout(function() {
36 box.style.left = '
0px';
38 window.setTimeout(function() {
39 var boxPos = parseInt(window.getComputedStyle(box).left);
40 document.getElementById('result').innerHTML = (boxPos <
200) ?
"PASS" :
"FAIL";
41 if (window.layoutTestController)
42 layoutTestController.notifyDone();
46 window.addEventListener('load', startTransition, false)
51 <p>Box should start moving left after left style is reset after
500ms
</p>