[Web Animations] Turn Web Animations with CSS integration on for test runners
[WebKit-https.git] / LayoutTests / transitions / transition-display-property-2.html
1 <style>
2 test {
3     transition: 5s;
4     display: block;
5     height: 100px;
6     border: 2px solid green;
7     transition-timing-function: steps(2, start);
8 }
9 .animate { display:inline-block; height:10px; width:10px; }
10 </style>
11 <test></test>
12 <script>
13 if (window.testRunner)
14     testRunner.waitUntilDone();
15
16 const test = document.querySelector("test");
17
18 function tryComplete()
19 {
20     if (test.offsetHeight < 100) {
21         if (window.testRunner)
22             testRunner.notifyDone();
23         return;
24     }
25     setTimeout(tryComplete, 10);
26 }
27
28 test.offsetWidth;
29 test.className = "animate";
30 tryComplete();
31 </script>