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>Handle
0 duration in a multiple value list
</title>
8 <style type=
"text/css" media=
"screen">
13 background-color: blue;
14 -webkit-transition-duration:
0,
0.5s;
15 -webkit-transition-timing-function: linear;
16 -webkit-transition-property: top, left;
19 <script src=
"transition-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
20 <script type=
"text/javascript" charset=
"utf-8">
22 const expectedValues = [
23 // [time, element-id, property, expected-value, tolerance]
24 [
0.25,
"box",
"left",
50,
10],
25 [
0.25,
"box",
"top",
100,
10],
30 var box = document.getElementById('box');
31 box.style.top = '
100px';
32 box.style.left = '
100px';
35 runTransitionTest(expectedValues, setupTest, true);
41 <p>Tests that with a zero duration transition on top, it does not animate
</p>