| 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 display: inline-block; | 5 display: inline-block; |
| 6 font: 20px sans-serif; | 6 font: 20px sans-serif; |
| 7 } | 7 } |
| 8 .replica { | 8 .replica { |
| 9 color: green; | 9 color: green; |
| 10 margin-right: 30px; | 10 margin-right: 30px; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 from: '14px', | 121 from: '14px', |
| 122 to: '4' | 122 to: '4' |
| 123 }, [ | 123 }, [ |
| 124 {at: -0.3, is: '14px'}, | 124 {at: -0.3, is: '14px'}, |
| 125 {at: 0, is: '14px'}, | 125 {at: 0, is: '14px'}, |
| 126 {at: 0.3, is: '14px'}, | 126 {at: 0.3, is: '14px'}, |
| 127 {at: 0.6, is: '4'}, | 127 {at: 0.6, is: '4'}, |
| 128 {at: 1, is: '4'}, | 128 {at: 1, is: '4'}, |
| 129 {at: 1.5, is: '4'}, | 129 {at: 1.5, is: '4'}, |
| 130 ]); | 130 ]); |
| 131 assertInterpolation({ |
| 132 property: 'line-height', |
| 133 from: '4vw', |
| 134 to: '14vw' |
| 135 }, [ |
| 136 {at: -1, is: '0'}, |
| 137 {at: -0.3, is: '1vw'}, |
| 138 {at: 0, is: '4vw'}, |
| 139 {at: 0.3, is: '7vw'}, |
| 140 {at: 0.6, is: '10vw'}, |
| 141 {at: 1, is: '14vw'}, |
| 142 {at: 1.5, is: '19vw'}, |
| 143 ]); |
| 144 // content_shell --dump-render-tree uses a viewport of 800x600. |
| 145 assertInterpolation({ |
| 146 property: 'line-height', |
| 147 from: '50vmin', |
| 148 to: '100px' |
| 149 }, [ |
| 150 {at: -0.25, is: '350px'}, |
| 151 {at: 0, is: '300px'}, |
| 152 {at: 0.25, is: '250px'}, |
| 153 {at: 0.75, is: '150px'}, |
| 154 {at: 1, is: '100px'}, |
| 155 {at: 1.5, is: '0px'}, |
| 156 ]); |
| 157 assertInterpolation({ |
| 158 property: 'line-height', |
| 159 from: '100px', |
| 160 to: '50vmax' |
| 161 }, [ |
| 162 {at: -0.25, is: '25px'}, |
| 163 {at: 0, is: '100px'}, |
| 164 {at: 0.25, is: '175px'}, |
| 165 {at: 0.75, is: '325px'}, |
| 166 {at: 1, is: '400px'}, |
| 167 {at: 1.5, is: '550px'}, |
| 168 ]); |
| 169 assertInterpolation({ |
| 170 property: 'line-height', |
| 171 from: '75vw', |
| 172 to: '25vh' |
| 173 }, [ |
| 174 {at: -0.25, is: '712.5px'}, |
| 175 {at: 0, is: '600px'}, |
| 176 {at: 0.25, is: '487.5px'}, |
| 177 {at: 0.75, is: '262.5px'}, |
| 178 {at: 1, is: '150px'}, |
| 179 {at: 1.5, is: '0px'}, // line-height must not be less than 0. |
| 180 ]); |
| 131 </script> | 181 </script> |
| 132 </body> | 182 </body> |
| 183 |
| 184 |
| 185 |
| 186 |
| 187 |
| 188 |
| OLD | NEW |