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

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

Issue 343563002: Web Animations API: Avoid style resolution when calling element.animate() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed FIXME Created 6 years, 6 months 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/font-size-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: 100px sans-serif; 6 font: 100px sans-serif;
7 } 7 }
8 .replica { 8 .replica {
9 color: green; 9 color: green;
10 margin-right: 30px; 10 margin-right: 30px;
11 } 11 }
12 </style> 12 </style>
13 <body> 13 <body>
14 <template id="target-template">TT</template> 14 <template id="target-template">TT</template>
15 <script src="resources/interpolation-test.js"></script> 15 <script src="resources/interpolation-test.js"></script>
16 <script> 16 <script>
17 assertInterpolation({ 17 assertInterpolation({
18 property: 'font-size', 18 property: 'font-size',
19 from: '4px', 19 from: '4px',
20 to: '14px' 20 to: '14px'
21 }, [ 21 }, [
22 {at: -2, is: '0px'}, // CSS font-size can't be negative. 22 {at: -2, is: '0px'}, // CSS font-size can't be negative.
23 {at: -0.3, is: '1px'}, 23 {at: -0.3, is: '1px'},
24 {at: 0, is: '4px'}, 24 {at: 0, is: '4px'},
25 {at: 0.3, is: '7px'}, 25 {at: 0.3, is: '7px'},
26 {at: 0.6, is: '10px'}, 26 {at: 0.6, is: '10px'},
27 {at: 1, is: '14px'}, 27 {at: 1, is: '14px'},
28 {at: 1.5, is: '19px'}, 28 {at: 1.5, is: '19px'},
29 ]); 29 ]);
30 assertInterpolation({
31 property: 'font-size',
32 from: 'x-small',
33 to: '20px'
34 }, [
35 {at: -2, is: '0px'}, // CSS font-size can't be negative.
36 {at: -0.3, is: '7px'},
37 {at: 0, is: '10px'},
38 {at: 0.3, is: '13px'},
39 {at: 0.6, is: '16px'},
40 {at: 1, is: '20px'},
41 {at: 1.5, is: '25px'},
42 ]);
30 </script> 43 </script>
31 </body> 44 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/font-size-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698