Computed style of fill/stroke properties incorrect on references
[WebKit-https.git] / LayoutTests / transitions / zero-duration-without-units.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5   <style>
6     #box {
7       height: 50px;
8       width: 100px;
9       background-color: blue;
10       -webkit-transition-property: top;
11       -webkit-transition-duration: 1s;
12       -webkit-transition-duration: 0;
13     }
14   </style>
15   <script>
16     if (window.testRunner)
17       testRunner.dumpAsText();
18
19     function test()
20     {
21         var box = document.getElementById('box');
22         var dur = parseInt(window.getComputedStyle(box).webkitTransitionDuration);
23         document.getElementById('result').innerHTML = "Duration was " + dur + " (should be 0): " + (dur == 0 ? "PASS" : "FAIL");
24     }
25     window.addEventListener('load', test, false)
26   </script>
27 </head>
28 <body>
29
30 <div id="box">
31 </div>
32 <div id="result">
33 </div>
34 </body>
35 </html>