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

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

Issue 983073002: Make font-size-adjust animatable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style type="text/css">
3 .container {
4 font-size: 20px;
5 line-height: 1;
6 }
7
8 @font-face {
9 /* LinLibertine_R's aspect value = 0.440918 on mac */
10 font-family : 'referenceFont';
11 src : url('../../third_party/Libertine/LinLibertine_R.woff') format("woff");
12 }
13
14 @font-face {
15 /* OpenSans-Regular's aspect = 0.544922 on mac */
16 /* OpenSans-Regular's aspect = 0.535156 on linux */
17 font-family : 'testFont';
18 src : url('../../resources/opensans/OpenSans-Regular.woff') format("woff");
19 }
20
21 .target {
22 display: inline-block;
23 font-family: testFont;
24 }
25
26 .replica {
27 color: green;
28 margin-right: 30px;
29 }
30 </style>
31
32 <template id="target-template">
33 <span class="container">
34 <div class="target">xx</span>
35 </div>
36 </template>
37 <script src="resources/interpolation-test.js"></script>
38 <script>
39 assertInterpolation({
40 property: 'font-size-adjust',
41 from: '0',
42 to: '1.2'
43 }, [
44 {at: -2, is: 'none'}, // CSS font-size-adjust can't be negative.
45 {at: -0.3, is: 'none'},
46 {at: 0, is: 'none'},
47 {at: 0.3, is: '0.360000014305115'},
48 {at: 0.6, is: '0.72000002861023'},
49 {at: 1, is: '1.20000004768372'},
50 {at: 1.5, is: '1.80000007152557'},
51 ]);
52 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698