Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Side by Side Diff: LayoutTests/animations/interpolation/line-height-interpolation.html

Issue 90113003: Web Animations CSS: Fix crash when animating viewport units (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Linux test expectation search fallback path sadface Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/line-height-interpolation-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/line-height-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698