REGRESSION (r198943): Transitions don't work if they animate display property
[WebKit-https.git] / LayoutTests / transitions / transition-display-property.html
1 <style>
2 test { transition:0.1s; display:block; height:100px; border: 2px solid green; }
3 .animate { display:inline-block; height:10px; width:10px; }
4 </style>
5 <test></test>
6 <script>
7 var test = document.querySelector("test");
8 var count = 0;
9 function testUntilComplete()
10 {
11     if (test.offsetWidth == 10 || ++count == 10)
12         testRunner.notifyDone();
13     else
14         setTimeout(testUntilComplete, 0.1);
15 }
16
17 if (window.testRunner) {
18     testRunner.waitUntilDone();
19     testUntilComplete();
20 }
21 test.offsetWidth;
22 test.className = "animate";
23 </script>