ort/helper.js"></script>

</head>
<body>
<div id="log"></div>

<script>
promise_test(async t => {
  // Start a 100s transition 50% of the way through
  const div = addDiv(t, {
    style: 'transition: height 100s -50s linear; height: 0px',
  });
  getComputedStyle(div).height;
  div.style.height = '100px';
  assert_equals(
    getComputedStyle(div).height,
    '50px',
    'Transition should be initially 50% complete'
  );

  // Unset the transition property (with default all 0s).
  div.style.transition = '';