OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
3 <style> | 3 <style> |
| 4 .parent { |
| 5 -webkit-column-rule-style: solid; |
| 6 -webkit-column-rule-width: 90px; |
| 7 } |
4 .target { | 8 .target { |
5 -webkit-column-count: 2; | 9 -webkit-column-count: 2; |
6 -webkit-column-rule: 2px solid black; | 10 -webkit-column-rule: 2px solid black; |
7 column-count: 2; | 11 column-count: 2; |
8 column-rule: 2px solid black; | 12 column-rule: 2px solid black; |
| 13 -webkit-column-rule-width: 10px; |
9 } | 14 } |
10 .expected { | 15 .expected { |
11 -webkit-column-rule: 2px solid green; | 16 -webkit-column-rule: 2px solid green; |
12 column-rule: 2px solid green; | 17 column-rule: 2px solid green; |
13 } | 18 } |
14 .target div { | 19 .target div { |
15 height: 20px; | 20 height: 20px; |
16 } | 21 } |
17 </style> | 22 </style> |
18 <body> | 23 <body> |
19 <template id="target-template"> | 24 <template id="target-template"> |
20 <div></div><div></div> | 25 <div></div><div></div> |
21 </template> | 26 </template> |
22 <script src="resources/interpolation-test.js"></script> | 27 <script src="resources/interpolation-test.js"></script> |
23 <script> | 28 <script> |
24 assertInterpolation({ | 29 assertInterpolation({ |
25 property: '-webkit-column-rule-width', | 30 property: '-webkit-column-rule-width', |
| 31 from: '', |
| 32 to: '40px', |
| 33 }, [ |
| 34 {at: -0.3, is: '1px'}, |
| 35 {at: 0, is: '10px'}, |
| 36 {at: 0.3, is: '19px'}, |
| 37 {at: 0.6, is: '28px'}, |
| 38 {at: 1, is: '40px'}, |
| 39 {at: 1.5, is: '55px'}, |
| 40 ]); |
| 41 |
| 42 assertInterpolation({ |
| 43 property: '-webkit-column-rule-width', |
| 44 from: 'initial', |
| 45 to: '40px', |
| 46 }, [ |
| 47 {at: -0.3, is: '0px'}, |
| 48 {at: 0, is: '3px'}, |
| 49 {at: 0.3, is: '14px'}, |
| 50 {at: 0.6, is: '25px'}, |
| 51 {at: 1, is: '40px'}, |
| 52 {at: 1.5, is: '59px'}, |
| 53 ]); |
| 54 |
| 55 assertInterpolation({ |
| 56 property: '-webkit-column-rule-width', |
| 57 from: 'inherit', |
| 58 to: '40px', |
| 59 }, [ |
| 60 {at: -0.3, is: '105px'}, |
| 61 {at: 0, is: '90px'}, |
| 62 {at: 0.3, is: '75px'}, |
| 63 {at: 0.6, is: '60px'}, |
| 64 {at: 1, is: '40px'}, |
| 65 {at: 1.5, is: '15px'}, |
| 66 ]); |
| 67 |
| 68 assertInterpolation({ |
| 69 property: '-webkit-column-rule-width', |
| 70 from: 'unset', |
| 71 to: '40px', |
| 72 }, [ |
| 73 {at: -0.3, is: '0px'}, |
| 74 {at: 0, is: '3px'}, |
| 75 {at: 0.3, is: '14px'}, |
| 76 {at: 0.6, is: '25px'}, |
| 77 {at: 1, is: '40px'}, |
| 78 {at: 1.5, is: '59px'}, |
| 79 ]); |
| 80 |
| 81 assertInterpolation({ |
| 82 property: '-webkit-column-rule-width', |
26 from: '0px', | 83 from: '0px', |
27 to: '100px' | 84 to: '100px' |
28 }, [ | 85 }, [ |
29 {at: -0.3, is: '0'}, // -webkit-column-rule-width can't be negative. | 86 {at: -0.3, is: '0'}, // -webkit-column-rule-width can't be negative. |
30 {at: 0, is: '0'}, | 87 {at: 0, is: '0'}, |
31 {at: 0.3, is: '30px'}, | 88 {at: 0.3, is: '30px'}, |
32 {at: 0.6, is: '60px'}, | 89 {at: 0.6, is: '60px'}, |
33 {at: 1, is: '100px'}, | 90 {at: 1, is: '100px'}, |
34 {at: 1.5, is: '150px'}, | 91 {at: 1.5, is: '150px'}, |
35 ]); | 92 ]); |
36 </script> | 93 </script> |
37 </body> | 94 </body> |
OLD | NEW |