3 <title>Testing inherit transitions
</title>
4 <style type=
"text/css" media=
"screen">
11 background-color: blue;
14 -webkit-transition-property: left;
15 -webkit-transition-duration:
2s;
18 -webkit-transition-property: inherit;
21 <script type=
"text/javascript" charset=
"utf-8">
22 if (window.layoutTestController) {
23 layoutTestController.dumpAsText();
24 layoutTestController.waitUntilDone();
31 'left', /* box4 */ /* inherits from box3 */
33 'all', /* box6 */ /* does NOT inherit */
36 function testProperties()
40 var boxes = document.body.getElementsByClassName('box');
41 for (var i =
0; i < boxes.length; ++i) {
42 var curBox = boxes[i];
43 var curProp = window.getComputedStyle(curBox).webkitTransitionProperty;
44 if (curProp == kExpecteds[i])
48 result +=
"Box " + (i+
1) +
" computed transition property: " + curProp +
" expected: " + kExpecteds[i] +
"<br>";
51 document.body.removeChild(document.getElementById('container'));
52 document.getElementById('result').innerHTML = result;
53 if (window.layoutTestController)
54 layoutTestController.notifyDone();
58 window.addEventListener('load', testProperties, false);
64 <div id=
"box1" class=
"box"></div>
65 <div id=
"box2" class=
"box transition"></div>
66 <div id=
"box3" class=
"box transition">
67 <div id=
"box4" class=
"box"></div>
69 <div id=
"box5" class=
"box transition">
70 <div id=
"box6" class=
"box"></div>
74 <div id=
"result"></div>