summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transitions/CSSTransition-transitionProperty.tentative.html
blob: 8eb284107d350fb2a5da1b176aa213f807cd212f (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
25
26
27
28
<!doctype html>
<meta charset=utf-8>
<title>CSSTransition.transitionProperty</title>
<link rel="help" href="https://drafts.csswg.org/css-transitions-2/#dom-csstransition-transitionproperty">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/helper.js"></script>
<div id="log"></div>
<script>
'use strict';

test(t => {
  const div = addDiv(t);

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

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

</script>