| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
| 3 <body> | 3 <body> |
| 4 <script src="resources/interpolation-test.js"></script> | 4 <script src="resources/interpolation-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 /* TODO: add inset test once blend() works for it */ | 6 /* TODO: add inset test once blend() works for it */ |
| 7 | 7 |
| 8 assertInterpolation({ | 8 assertInterpolation({ |
| 9 property: 'shape-outside', | 9 property: 'shape-outside', |
| 10 from: 'circle(100% at 0% 0%)', | 10 from: 'circle(100% at 0% 0%)', |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 {at: -0.3, is: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)'}, | 52 {at: -0.3, is: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)'}, |
| 53 {at: 0, is: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)'}, | 53 {at: 0, is: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)'}, |
| 54 {at: 0.3, is: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)'}, | 54 {at: 0.3, is: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)'}, |
| 55 {at: 0.6, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, | 55 {at: 0.6, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, |
| 56 {at: 1, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, | 56 {at: 1, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, |
| 57 {at: 1.5, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, | 57 {at: 1.5, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, |
| 58 ]); | 58 ]); |
| 59 | 59 |
| 60 assertInterpolation({ | 60 assertInterpolation({ |
| 61 property: 'shape-outside', | 61 property: 'shape-outside', |
| 62 from: 'inset(0%)', |
| 63 to: 'inset(20%)', |
| 64 }, [ |
| 65 {at: -0.3, is: 'inset(-6%)'}, |
| 66 {at: 0, is: 'inset(0%)'}, |
| 67 {at: 0.3, is: 'inset(6%)'}, |
| 68 {at: 0.6, is: 'inset(12%)'}, |
| 69 {at: 1, is: 'inset(20%)'}, |
| 70 {at: 1.5, is: 'inset(30%)'}, |
| 71 ]); |
| 72 |
| 73 assertInterpolation({ |
| 74 property: 'shape-outside', |
| 62 from: 'none', | 75 from: 'none', |
| 63 to: 'ellipse(100% 100% at 0% 0%)', | 76 to: 'ellipse(100% 100% at 0% 0%)', |
| 64 }, [ | 77 }, [ |
| 65 {at: -0.3, is: 'none'}, | 78 {at: -0.3, is: 'none'}, |
| 66 {at: 0, is: 'none'}, | 79 {at: 0, is: 'none'}, |
| 67 {at: 0.3, is: 'none'}, | 80 {at: 0.3, is: 'none'}, |
| 68 {at: 0.6, is: 'ellipse(100% 100% at 0% 0%)'}, | 81 {at: 0.6, is: 'ellipse(100% 100% at 0% 0%)'}, |
| 69 {at: 1, is: 'ellipse(100% 100% at 0% 0%)'}, | 82 {at: 1, is: 'ellipse(100% 100% at 0% 0%)'}, |
| 70 {at: 1.5, is: 'ellipse(100% 100% at 0% 0%)'} | 83 {at: 1.5, is: 'ellipse(100% 100% at 0% 0%)'} |
| 71 ]); | 84 ]); |
| 72 | 85 |
| 73 // TODO: add intermediate keyframe tests when CSS shapes position computed value
s are cleaned up | 86 // TODO: add intermediate keyframe tests when CSS shapes position computed value
s are cleaned up |
| 74 assertInterpolation({ | 87 assertInterpolation({ |
| 75 property: 'shape-outside', | 88 property: 'shape-outside', |
| 76 from: 'circle(20% at right 10% bottom 20px)', | 89 from: 'circle(20% at right 10% bottom 20px)', |
| 77 to: 'circle(30% at right 20% bottom 30px)', | 90 to: 'circle(30% at right 20% bottom 30px)', |
| 78 }, [ | 91 }, [ |
| 79 {at: 0, is: 'circle(20% at right 10% bottom 20px)'}, | 92 {at: 0, is: 'circle(20% at right 10% bottom 20px)'}, |
| 80 {at: 0.5, is: 'circle(25% at left 85% bottom 25px)'}, | 93 {at: 0.5, is: 'circle(25% at left 85% bottom 25px)'}, |
| 81 {at: 1, is: 'circle(30% at right 20% bottom 30px)'}, | 94 {at: 1, is: 'circle(30% at right 20% bottom 30px)'}, |
| 82 ]); | 95 ]); |
| 83 </script> | 96 </script> |
| 84 </body> | 97 </body> |
| OLD | NEW |