| -webkit-transition-property: left; |
| -webkit-transition-duration: 2s; |
| -webkit-transition-property: inherit; |
| testRunner.waitUntilDone(); |
| 'left', /* box4 */ /* inherits from box3 */ |
| 'all', /* box6 */ /* does NOT inherit */ |
| function testProperties() |
| var boxes = document.body.getElementsByClassName('box'); |
| for (var i = 0; i < boxes.length; ++i) { |
| var curProp = window.getComputedStyle(curBox).webkitTransitionProperty; |
| if (curProp == kExpecteds[i]) |
| result += "Box " + (i+1) + " computed transition property: " + curProp + " expected: " + kExpecteds[i] + "<br>"; |
| document.body.removeChild(document.getElementById('container')); |
| document.getElementById('result').innerHTML = result; |
| window.addEventListener('load', testProperties, false); |
| <div id="box1" class="box"></div> |
| <div id="box2" class="box transition"></div> |
| <div id="box3" class="box transition"> |
| <div id="box4" class="box"></div> |
| <div id="box5" class="box transition"> |
| <div id="box6" class="box"></div> |