blob: fbe2f5c08a7f6f7a9ce06975e35217787141833a [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Handle 0 duration in a multiple value list</title>
<style type="text/css" media="screen">
#box {
position: absolute;
height: 100px;
width: 100px;
background-color: blue;
-webkit-transition-duration: 0, 0.5s;
-webkit-transition-timing-function: linear;
-webkit-transition-property: top, left;
}
</style>
<script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.25, "box", "left", 50, 10],
[0.25, "box", "top", 100, 10],
];
function setupTest()
{
var box = document.getElementById('box');
box.style.top = '100px';
box.style.left = '100px';
}
runTransitionTest(expectedValues, setupTest, true);
</script>
</head>
<body>
<p>Tests that with a zero duration transition on top, it does not animate</p>
<div id="box">
</div>
<div id="result">
</div>
</body>
</html>