6 -webkit-transition-property: none;
9 transition-property: none;
13 if (window
.testRunner
) {
14 testRunner
.dumpAsText();
15 testRunner
.waitUntilDone();
18 function testValue(actual
, expected
) {
19 if (actual
== expected
)
20 document
.getElementById('result').innerHTML
+= 'PASS: transition-property was ' + expected
+ '<br>';
22 document
.getElementById('result').innerHTML
+= 'FAIL: transition-property was ' + actual
+ ', expected ' + expected
+ '<br>';
26 function testProperties()
28 var target1
= document
.getElementById('target1');
29 var target2
= document
.getElementById('target2');
30 testValue(getComputedStyle(target1
).webkitTransitionProperty
, 'none');
31 testValue(getComputedStyle(target2
).transitionProperty
, 'none');
33 target1
.style
.webkitTransitionProperty
= 'initial';
34 target2
.style
.transitionProperty
= 'initial';
35 testValue(getComputedStyle(target1
).webkitTransitionProperty
, 'all');
36 testValue(getComputedStyle(target2
).transitionProperty
, 'all');
38 if (window
.testRunner
)
39 testRunner
.notifyDone();
43 window
.addEventListener('load', testProperties
, false);
47 <p>Tests that explicitly setting the transition-property property to 'initial' works for both prefixed and unprefixed versions.
49 <div id=
"target1"></div>
50 <div id=
"target2"></div>
52 <div id=
"result"></div>