| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <meta charset="UTF-8"> | |
| 3 <style> | |
| 4 .target { | |
| 5 width: 60px; | |
| 6 height: 60px; | |
| 7 display: inline-block; | |
| 8 border: 2px solid black; | |
| 9 margin-right: 2px; | |
| 10 background-color: red; | |
| 11 } | |
| 12 .expected { | |
| 13 background-color: green; | |
| 14 margin-right: 15px; | |
| 15 } | |
| 16 </style> | |
| 17 <body> | |
| 18 <script src="resources/interpolation-test.js"></script> | |
| 19 <script> | |
| 20 assertInterpolation({ | |
| 21 property: 'background-color', | |
| 22 from: 'unset', | |
| 23 to: 'transparent' | |
| 24 }, [ | |
| 25 {at: -0.3, is: 'transparent'}, | |
| 26 {at: 0, is: 'transparent'}, | |
| 27 {at: 0.3, is: 'transparent'}, | |
| 28 {at: 0.6, is: 'transparent'}, | |
| 29 {at: 1, is: 'transparent'}, | |
| 30 {at: 1.5, is: 'transparent'}, | |
| 31 ]); | |
| 32 </script> | |
| 33 </body> | |
| OLD | NEW |