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 /* 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> |
OLD | NEW |