[Web Animations] Interpolation between lengths with an "auto" value should be discrete
[WebKit-https.git] / LayoutTests / imported / blink / transitions / transition-not-interpolable.html
1 <!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
2 <style>
3 #test {
4   height: 0px;
5   -webkit-transition: height 1000s;
6   background: green;
7 }
8 </style>
9 <div id="test">Testing...</div>
10 <script>
11 if (window.testRunner) {
12   testRunner.dumpAsText();
13   testRunner.waitUntilDone();
14 }
15
16 function finish(result) {
17   document.body.textContent = result;
18   if (window.testRunner) {
19     testRunner.notifyDone();
20   }
21 }
22
23 onload = function() {
24   if (test.clientHeight != 0) {
25     return finish('FAIL -- expected initial height of 0px');
26   }
27
28   test.style.height = 'auto';
29   if (test.clientHeight == 0) {
30     return finish('FAIL -- transtion should not apply from 0px to auto');
31   }
32
33   return finish('PASS');
34 };
35 </script>