blob: 92291c1f289be8af92dbe4e823a4783255a3f683 [file] [log] [blame]
<!DOCTYPE html>
#box {
position: absolute;
height: 100px;
width: 100px;
left: 0px;
top: 0px;
background-color: blue;
transition-duration: 0s, 0.5s;
transition-timing-function: linear;
transition-property: top, left;
<script src="../animations/resources/animation-test-helpers.js"></script>
<script type="text/javascript">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.25, "box", "left", 50, 10],
[0.25, "box", "top", 100, 0],
function setupTest()
var box = document.getElementById('box'); = '100px'; = '100px';
runTransitionTest(expectedValues, setupTest);
<p>Tests that with a zero duration transition on top, it does not animate</p>
<div id="box">
<div id="result">