Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / transition-property-explicit-initial.html
blobc1b79f65688a4af2da3de4cd9675ca606d40cd70
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #target1 {
6 -webkit-transition-property: none;
8 #target2 {
9 transition-property: none;
11 </style>
12 <script>
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>';
21 else
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);
44 </script>
45 </head>
46 <body>
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>
54 </body>
55 </html>