OLD | NEW |
---|---|
(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 font-family : 'testFont'; | |
10 src : url('../../resources/opensans/OpenSans-Regular.woff') format("woff"); | |
11 } | |
12 | |
13 .target { | |
14 display: inline-block; | |
15 font-family: testFont; | |
16 } | |
17 | |
18 .replica { | |
19 color: green; | |
20 margin-right: 30px; | |
21 } | |
22 </style> | |
23 | |
24 <template id="target-template"> | |
25 <span class="container"> | |
26 <div class="target">x</span> | |
27 </div> | |
28 </template> | |
29 <script src="resources/interpolation-test.js"></script> | |
30 <script> | |
31 assertInterpolation({ | |
32 property: 'font-size-adjust', | |
33 from: '0', | |
34 to: '1.2' | |
35 }, [ | |
36 {at: -2, is: 'none'}, | |
dstockwell
2015/03/16 21:49:31
Why can't we interpolate smoothly from 0 to 1.2?
changseok
2015/03/17 07:12:58
Because '0' for font-size-adjust is same meaning w
dstockwell
2015/03/17 07:42:10
This sounds like a bug in gecko, we should clarify
changseok
2015/03/17 11:35:06
O.K
dstockwell
2015/03/17 23:36:46
OK, but please file the bug and start the discussi
| |
37 {at: -0.3, is: 'none'}, | |
38 {at: 0, is: 'none'}, | |
39 {at: 0.3, is: 'none'}, | |
40 {at: 0.6, is: 'none'}, | |
41 {at: 1, is: 'none'}, | |
42 {at: 1.5, is: 'none'}, | |
43 ]); | |
44 | |
45 assertInterpolation({ | |
46 property: 'font-size-adjust', | |
47 from: 'none', | |
48 to: '1.2' | |
49 }, [ | |
50 {at: -2, is: 'none'}, | |
51 {at: -0.3, is: 'none'}, | |
52 {at: 0, is: 'none'}, | |
53 {at: 0.3, is: 'none'}, | |
54 {at: 0.6, is: 'none'}, | |
dstockwell
2015/03/16 21:49:31
This is incorrect, the values should be '1.2' at 0
changseok
2015/03/17 07:12:58
With same reason above. if any single frame has '0
dstockwell
2015/03/17 07:42:10
For values which do not smoothly interpolate, eg.
changseok
2015/03/17 11:35:06
I see. Fixed as you said.
| |
55 {at: 1, is: 'none'}, | |
56 {at: 1.5, is: 'none'}, | |
57 ]); | |
58 | |
59 assertInterpolation({ | |
60 property: 'font-size-adjust', | |
61 from: '0.2', | |
62 to: '1.2' | |
63 }, [ | |
64 {at: -2, is: 'none'}, // CSS font-size-adjust can't be negative. | |
65 {at: -0.3, is: 'none'}, | |
66 {at: 0, is: '0.200000002980232'}, | |
dstockwell
2015/03/16 21:49:31
just '0.2' should work here, the helper performs r
changseok
2015/03/17 07:12:58
Cool!
| |
67 {at: 0.3, is: '0.5'}, | |
68 {at: 0.6, is: '0.800000011920929'}, | |
69 {at: 1, is: '1.20000004768372'}, | |
70 {at: 1.5, is: '1.70000004768372'}, | |
71 ]); | |
72 </script> | |
OLD | NEW |