5c2e2b0869e55a908bc329f02c142d25eb508af6
[WebKit-https.git] / LayoutTests / imported / mozilla / css-transitions / test_csstransition-transitionproperty.html
1 <!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
2 <meta charset=utf-8>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <script src="../resources/testcommon.js"></script>
6 <body>
7 <div id="log"></div>
8 <script>
9 'use strict';
10
11 test(function(t) {
12   var div = addDiv(t);
13
14   // Add a transition
15   div.style.left = '0px';
16   getComputedStyle(div).transitionProperty;
17   div.style.transition = 'all 100s';
18   div.style.left = '100px';
19
20   assert_equals(div.getAnimations()[0].transitionProperty, 'left',
21                 'The transitionProperty for the corresponds to the specific ' +
22                 'property being transitioned');
23 }, 'CSSTransition.transitionProperty');
24
25 </script>
26 </body>