tComputedStyle(element).top, '90px');
      } finally {
        container.style = '';
      }

      assert_equals(getComputedStyle(element).top, '60px');
    }, `Animation using ${unit} unit responds to changing container size`);
  }

</script>
