Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <meta charset="UTF-8"> | |
| 3 <style> | |
| 4 .target { | |
| 5 width: 10px; | |
| 6 height: 10px; | |
| 7 background-color: black; | |
| 8 offset-path: ; | |
| 9 offset-distance: 10px; | |
| 10 } | |
| 11 .expected { | |
| 12 background-color: green; | |
| 13 } | |
| 14 </style> | |
| 15 <body> | |
| 16 <script src="resources/interpolation-test.js"></script> | |
| 17 <script> | |
| 18 | |
| 19 assertInterpolation({ | |
| 20 property: 'offset', | |
| 21 from: 'path("M0 200H 700") 500px 800deg', | |
| 22 to: 'path("M0 300H 700 Z") 600px 900deg', | |
| 23 }, [ | |
| 24 {at: -0.3, is: 'path("M0 200H 700") 470px 770deg'}, | |
| 25 {at: 0, is: 'path("M0 200H 700") 500px 800deg'}, | |
| 26 {at: 0.3, is: 'path("M0 200H 700") 530px 830deg'}, | |
| 27 {at: 0.6, is: 'path("M0 300H 700 Z") 560px 860deg'}, | |
| 28 {at: 1, is: 'path("M0 300H 700 Z") 600px 900deg'}, | |
| 29 {at: 1.5, is: 'path("M0 300H 700 Z") 650px 950deg'}, | |
| 30 ]); | |
| 31 | |
| 32 /* | |
| 33 2 -> 3 123 | |
| 34 5 -> 6 456 | |
| 35 8 -> 9 789 | |
| 36 */ | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 /* | |
| 43 assertInterpolation({ | |
| 44 property: 'offset', | |
| 45 from: 'path("M0 0H 400") 0px auto', | |
| 46 to: 'path("M0 0H 500") 100px 0deg', | |
| 47 }, [ | |
| 48 {at: -0.3, is: 'path("M0 0H 370") -30px auto'}, | |
| 49 {at: 0, is: 'path("M0 0H 400") 0px auto'}, | |
| 50 {at: 0.3, is: 'path("M0 0H 430") 30px auto'}, | |
| 51 {at: 0.6, is: 'path("M0 0H 460") 60px 0deg'}, | |
| 52 {at: 1, is: 'path("M0 0H 500") 100px 0deg'}, | |
| 53 {at: 1.5, is: 'path("M0 0H 550") 150px 0deg'}, | |
| 54 ]); | |
| 55 */ | |
|
alancutter (OOO until 2018)
2017/03/13 05:11:58
We should not check in commented out code.
Eric Willigers
2017/03/21 05:47:24
Fixed.
| |
| 56 </script> | |
| 57 </body> | |
| OLD | NEW |