| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
| 3 <style> | 3 <style> |
| 4 .target { | 4 .target { |
| 5 color: black; | 5 color: black; |
| 6 text-decoration-line: underline; | 6 text-decoration-line: underline; |
| 7 -webkit-text-fill-color: steelblue; |
| 7 } | 8 } |
| 8 .replica { | 9 .replica { |
| 9 color: green; | 10 color: green; |
| 10 } | 11 } |
| 11 </style> | 12 </style> |
| 12 <body> | 13 <body> |
| 13 <template id="target-template"> | 14 <template id="target-template"> |
| 14 <span class="target">TTT</span> | 15 <span class="target">TTT</span> |
| 15 </template> | 16 </template> |
| 16 <script src="resources/interpolation-test.js"></script> | 17 <script src="resources/interpolation-test.js"></script> |
| 17 <script> | 18 <script> |
| 18 assertInterpolation({ | 19 assertInterpolation({ |
| 19 property: 'text-decoration-color', | 20 property: 'text-decoration-color', |
| 20 from: 'orange', | 21 from: 'orange', |
| 21 to: 'blue' | 22 to: 'blue' |
| 22 }, [ | 23 }, [ |
| 23 {at: -5, is: '#ffff00'}, | 24 {at: -5, is: '#ffff00'}, |
| 24 {at: -0.4, is: '#ffe700'}, | 25 {at: -0.4, is: '#ffe700'}, |
| 25 {at: 0, is: 'orange'}, // ffa500 | 26 {at: 0, is: 'orange'}, // ffa500 |
| 26 {at: 0.2, is: '#cc8433'}, | 27 {at: 0.2, is: '#cc8433'}, |
| 27 {at: 0.6, is: '#664299'}, | 28 {at: 0.6, is: '#664299'}, |
| 28 {at: 1, is: 'blue'}, // 0000ff | 29 {at: 1, is: 'blue'}, // 0000ff |
| 29 {at: 1.5, is: 'blue'} | 30 {at: 1.5, is: 'blue'} |
| 30 ]); | 31 ]); |
| 32 |
| 33 assertInterpolation({ |
| 34 property: 'text-decoration-color', |
| 35 from: 'initial', |
| 36 to: 'red' |
| 37 }, [ |
| 38 {at: -5, is: '#00ffff'}, |
| 39 {at: -0.4, is: '#00b6fc'}, |
| 40 {at: 0, is: 'steelblue'}, // 4682b4 |
| 41 {at: 0.2, is: '#6B6890'}, |
| 42 {at: 0.6, is: '#b53448'}, |
| 43 {at: 1, is: 'red'}, // ff0000 |
| 44 {at: 1.5, is: 'red'} |
| 45 ]); |
| 31 </script> | 46 </script> |
| 32 </body> | 47 </body> |
| OLD | NEW |