summaryrefslogtreecommitdiffstats
path: root/dom/animation/test/css-transitions/file_csstransition-transitionproperty.html
blob: 176cc5a4dfaaa7aca81c4c5cdc442d38eb98ea03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<meta charset=utf-8>
<script src="../testcommon.js"></script>
<body>
<script>
'use strict';

test(function(t) {
  var div = addDiv(t);

  // Add a transition
  div.style.left = '0px';
  window.getComputedStyle(div).transitionProperty;
  div.style.transition = 'all 100s';
  div.style.left = '100px';

  assert_equals(div.getAnimations()[0].transitionProperty, 'left',
                'The transitionProperty for the corresponds to the specific ' +
                'property being transitioned');
}, 'CSSTransition.transitionProperty');

done();
</script>
</body>