blob: ef83742d11ffa9b0ceb3592f9f795f9117d5aa54 [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>Zero Duration Without Units</title>
<style type="text/css" media="screen">
#box {
height: 50px;
width: 100px;
background-color: blue;
-webkit-transition-property: top;
-webkit-transition-duration: 1s;
-webkit-transition-duration: 0;
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.layoutTestController)
layoutTestController.dumpAsText();
function test()
{
var box = document.getElementById('box');
var dur = parseInt(window.getComputedStyle(box).webkitTransitionDuration);
document.getElementById('result').innerHTML = "Duration was " + dur + " (should be 0): " + (dur == 0 ? "PASS" : "FAIL");
}
window.addEventListener('load', test, false)
</script>
</head>
<body>
<div id="box">
</div>
<div id="result">
</div>
</body>
</html>