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

Side by Side Diff: LayoutTests/animations/interpolation/font-size-zoom-interpolation.html

Issue 721773002: Build animated font properties through FontBuilder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/font-size-zoom-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">
3 <style> 2 <style>
4 .container { 3 .container {
5 font-size: 10px; 4 zoom: 2;
6 } 5 }
7 .target { 6 .target {
8 display: inline-block; 7 display: inline-block;
9 font: 100px sans-serif;
10 } 8 }
11 .replica { 9 .replica {
12 color: green; 10 color: green;
13 margin-right: 30px; 11 margin-right: 30px;
14 } 12 }
15 </style> 13 </style>
16 <body> 14 <body>
17 <template id="target-template"> 15 <template id="target-template">
18 <span class="container"> 16 <span class="container">
19 <div class="target">TT</div> 17 <div class="target">TT</div>
20 </span> 18 </span>
21 </template> 19 </template>
22 <script src="resources/interpolation-test.js"></script> 20 <script src="resources/interpolation-test.js"></script>
23 <script> 21 <script>
24 assertInterpolation({ 22 assertInterpolation({
25 property: 'font-size', 23 property: 'font-size',
26 from: '4px', 24 from: '10px',
dstockwell 2014/11/12 22:41:11 I don't understand the changes to this test. It's
andersr 2014/11/13 00:30:19 You're seeing creative diffing between a new test
27 to: '14px'
28 }, [
29 {at: -2, is: '0px'}, // CSS font-size can't be negative.
30 {at: -0.3, is: '1px'},
31 {at: 0, is: '4px'},
32 {at: 0.3, is: '7px'},
33 {at: 0.6, is: '10px'},
34 {at: 1, is: '14px'},
35 {at: 1.5, is: '19px'},
36 ]);
37 assertInterpolation({
38 property: 'font-size',
39 from: 'inherit',
40 to: '20px' 25 to: '20px'
41 }, [ 26 }, [
42 {at: -2, is: '0px'}, // CSS font-size can't be negative. 27 {at: -2, is: '0px'},
43 {at: -0.3, is: '7px'}, 28 {at: -0.3, is: '7px'},
44 {at: 0, is: '10px'}, 29 {at: 0, is: '10px'},
45 {at: 0.3, is: '13px'}, 30 {at: 0.3, is: '13px'},
46 {at: 0.6, is: '16px'}, 31 {at: 0.6, is: '16px'},
47 {at: 1, is: '20px'}, 32 {at: 1, is: '20px'},
48 {at: 1.5, is: '25px'}, 33 {at: 1.5, is: '25px'},
49 ]); 34 ]);
50 </script> 35 </script>
51 </body> 36 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/font-size-zoom-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698