10 background-color: blue;
13 -webkit-transition-property: left;
14 -webkit-transition-duration:
2s;
17 -webkit-transition-property: inherit;
21 if (window
.testRunner
) {
22 testRunner
.dumpAsText();
23 testRunner
.waitUntilDone();
30 'left', /* box4 */ /* inherits from box3 */
32 'all', /* box6 */ /* does NOT inherit */
35 function testProperties()
39 var boxes
= document
.body
.getElementsByClassName('box');
40 for (var i
= 0; i
< boxes
.length
; ++i
) {
41 var curBox
= boxes
[i
];
42 var curProp
= getComputedStyle(curBox
).webkitTransitionProperty
;
43 if (curProp
== kExpecteds
[i
])
47 result
+= "Box " + (i
+ 1) + " computed transition-property: " + curProp
+ ", expected: " + kExpecteds
[i
] + "<br>";
50 document
.body
.removeChild(document
.getElementById('container'));
51 document
.getElementById('result').innerHTML
= result
;
52 if (window
.testRunner
)
53 testRunner
.notifyDone();
57 window
.addEventListener('load', testProperties
, false);
61 <p>Tests inheritance of transition-property.
63 <div id=
"box1" class=
"box"></div>
64 <div id=
"box2" class=
"box transition"></div>
65 <div id=
"box3" class=
"box transition">
66 <div id=
"box4" class=
"box"></div>
68 <div id=
"box5" class=
"box transition">
69 <div id=
"box6" class=
"box"></div>
73 <div id=
"result"></div>