tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

font-size-adjust-composition.html (16079B)


      1 <!DOCTYPE html>
      2 <meta charset="UTF-8">
      3 <title>font-size-adjust composition</title>
      4 <link rel="author" title="ChangSeok Oh" href="mailto:changseok@webkit.org">
      5 <link rel="help" href="https://www.w3.org/TR/css-fonts-5/#font-size-adjust-prop">
      6 <meta name="assert" content="font-size-adjust supports animation with two value font metrics">
      7 
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/interpolation-testcommon.js"></script>
     11 
     12 <body></body>
     13 
     14 <script>
     15 test_composition({
     16  property: 'font-size-adjust',
     17  underlying: "0.5",
     18  replaceFrom: "none",
     19  addTo: "2.0",
     20 }, [
     21  {at: -0.5, expect: "none"},
     22  {at: 0, expect: "none"},
     23  {at: 0.5, expect: "2.5"},
     24  {at: 1, expect: "2.5"},
     25  {at: 1.5, expect: "2.5"},
     26 ]);
     27 
     28 test_composition({
     29  property: 'font-size-adjust',
     30  underlying: "0.5",
     31  addFrom: "0.0",
     32  addTo: "2.0",
     33 }, [
     34  {at: -0.5, expect: "0.0"},
     35  {at: 0, expect: "0.5"},
     36  {at: 0.5, expect: "1.5"},
     37  {at: 1, expect: "2.5"},
     38  {at: 1.5, expect: "3.5"},
     39 ]);
     40 
     41 test_composition({
     42  property: 'font-size-adjust',
     43  underlying: "0.5",
     44  replaceFrom: "0.0",
     45  addTo: "2.0",
     46 }, [
     47  {at: -0.5, expect: "0.0"},
     48  {at: 0, expect: "0.0"},
     49  {at: 0.5, expect: "1.25"},
     50  {at: 1, expect: "2.5"},
     51  {at: 1.5, expect: "3.75"},
     52 ]);
     53 
     54 test_composition({
     55  property: 'font-size-adjust',
     56  underlying: "0.5",
     57  addFrom: "0.0",
     58  replaceTo: "2.0",
     59 }, [
     60  {at: -0.5, expect: "0.0"},
     61  {at: 0, expect: "0.5"},
     62  {at: 0.5, expect: "1.25"},
     63  {at: 1, expect: "2.0"},
     64  {at: 1.5, expect: "2.75"},
     65 ]);
     66 
     67 test_composition({
     68  property: 'font-size-adjust',
     69  underlying: "0.5",
     70  replaceFrom: "2.0",
     71  addTo: "none",
     72 }, [
     73  {at: -0.5, expect: "2.0"},
     74  {at: 0, expect: "2.0"},
     75  {at: 0.5, expect: "none"},
     76  {at: 1, expect: "none"},
     77  {at: 1.5, expect: "none"},
     78 ]);
     79 
     80 test_composition({
     81  property: 'font-size-adjust',
     82  underlying: "ex-height 0.5",
     83  replaceFrom: "none",
     84  addTo: "ex-height 2.0",
     85 }, [
     86  {at: -0.5, expect: "none"},
     87  {at: 0, expect: "none"},
     88  {at: 0.5, expect: "2.5"},
     89  {at: 1, expect: "2.5"},
     90  {at: 1.5, expect: "2.5"},
     91 ]);
     92 
     93 test_composition({
     94  property: 'font-size-adjust',
     95  underlying: "ex-height 0.5",
     96  addFrom: "ex-height 0",
     97  addTo: "ex-height 2.0",
     98 }, [
     99  {at: -0.5, expect: "0.0"},
    100  {at: 0, expect: "0.5"},
    101  {at: 0.5, expect: "1.5"},
    102  {at: 1, expect: "2.5"},
    103  {at: 1.5, expect: "3.5"},
    104 ]);
    105 
    106 test_composition({
    107  property: 'font-size-adjust',
    108  underlying: "ex-height 0.5",
    109  replaceFrom: "ex-height 0",
    110  addTo: "ex-height 2.0",
    111 }, [
    112  {at: -0.5, expect: "0.0"},
    113  {at: 0, expect: "0.0"},
    114  {at: 0.5, expect: "1.25"},
    115  {at: 1, expect: "2.5"},
    116  {at: 1.5, expect: "3.75"},
    117 ]);
    118 
    119 test_composition({
    120  property: 'font-size-adjust',
    121  underlying: "ex-height 0.5",
    122  addFrom: "ex-height 0",
    123  replaceTo: "ex-height 2.0",
    124 }, [
    125  {at: -0.5, expect: "0.0"},
    126  {at: 0, expect: "0.5"},
    127  {at: 0.5, expect: "1.25"},
    128  {at: 1, expect: "2.0"},
    129  {at: 1.5, expect: "2.75"},
    130 ]);
    131 
    132 test_composition({
    133  property: 'font-size-adjust',
    134  underlying: "ex-height 0.5",
    135  replaceFrom: "ex-height 2.0",
    136  addTo: "none",
    137 }, [
    138  {at: -0.5, expect: "2.0"},
    139  {at: 0, expect: "2.0"},
    140  {at: 0.5, expect: "none"},
    141  {at: 1, expect: "none"},
    142  {at: 1.5, expect: "none"},
    143 ]);
    144 
    145 test_composition({
    146  property: 'font-size-adjust',
    147  underlying: "cap-height 0.5",
    148  replaceFrom: "none",
    149  addTo: "cap-height 2.0",
    150 }, [
    151  {at: -0.5, expect: "none"},
    152  {at: 0, expect: "none"},
    153  {at: 0.5, expect: "cap-height 2.5"},
    154  {at: 1, expect: "cap-height 2.5"},
    155  {at: 1.5, expect: "cap-height 2.5"},
    156 ]);
    157 
    158 test_composition({
    159  property: 'font-size-adjust',
    160  underlying: "cap-height 0.5",
    161  addFrom: "cap-height 0",
    162  addTo: "cap-height 2.0",
    163 }, [
    164  {at: -0.5, expect: "cap-height 0.0"},
    165  {at: 0, expect: "cap-height 0.5"},
    166  {at: 0.5, expect: "cap-height 1.5"},
    167  {at: 1, expect: "cap-height 2.5"},
    168  {at: 1.5, expect: "cap-height 3.5"},
    169 ]);
    170 
    171 test_composition({
    172  property: 'font-size-adjust',
    173  underlying: "cap-height 0.5",
    174  replaceFrom: "cap-height 0",
    175  addTo: "cap-height 2.0",
    176 }, [
    177  {at: -0.5, expect: "cap-height 0.0"},
    178  {at: 0, expect: "cap-height 0.0"},
    179  {at: 0.5, expect: "cap-height 1.25"},
    180  {at: 1, expect: "cap-height 2.5"},
    181  {at: 1.5, expect: "cap-height 3.75"},
    182 ]);
    183 
    184 test_composition({
    185  property: 'font-size-adjust',
    186  underlying: "cap-height 0.5",
    187  addFrom: "cap-height 0.0",
    188  replaceTo: "cap-height 2.0",
    189 }, [
    190  {at: -0.5, expect: "cap-height 0.0"},
    191  {at: 0, expect: "cap-height 0.5"},
    192  {at: 0.5, expect: "cap-height 1.25"},
    193  {at: 1, expect: "cap-height 2"},
    194  {at: 1.5, expect: "cap-height 2.75"},
    195 ]);
    196 
    197 test_composition({
    198  property: 'font-size-adjust',
    199  underlying: "cap-height 0.5",
    200  replaceFrom: "cap-height 2.0",
    201  addTo: "none",
    202 }, [
    203  {at: -0.5, expect: "cap-height 2.0"},
    204  {at: 0, expect: "cap-height 2.0"},
    205  {at: 0.5, expect: "none"},
    206  {at: 1, expect: "none"},
    207  {at: 1.5, expect: "none"},
    208 ]);
    209 
    210 test_composition({
    211  property: 'font-size-adjust',
    212  underlying: "ch-width 0.5",
    213  replaceFrom: "none",
    214  addTo: "ch-width 2.0",
    215 }, [
    216  {at: -0.5, expect: "none"},
    217  {at: 0, expect: "none"},
    218  {at: 0.5, expect: "ch-width 2.5"},
    219  {at: 1, expect: "ch-width 2.5"},
    220  {at: 1.5, expect: "ch-width 2.5"},
    221 ]);
    222 
    223 test_composition({
    224  property: 'font-size-adjust',
    225  underlying: "ch-width 0.5",
    226  addFrom: "ch-width 0",
    227  addTo: "ch-width 2.0",
    228 }, [
    229  {at: -0.5, expect: "ch-width 0.0"},
    230  {at: 0, expect: "ch-width 0.5"},
    231  {at: 0.5, expect: "ch-width 1.5"},
    232  {at: 1, expect: "ch-width 2.5"},
    233  {at: 1.5, expect: "ch-width 3.5"},
    234 ]);
    235 
    236 test_composition({
    237  property: 'font-size-adjust',
    238  underlying: "ch-width 0.5",
    239  replaceFrom: "ch-width 0",
    240  addTo: "ch-width 2.0",
    241 }, [
    242  {at: -0.5, expect: "ch-width 0.0"},
    243  {at: 0, expect: "ch-width 0.0"},
    244  {at: 0.5, expect: "ch-width 1.25"},
    245  {at: 1, expect: "ch-width 2.5"},
    246  {at: 1.5, expect: "ch-width 3.75"},
    247 ]);
    248 
    249 test_composition({
    250  property: 'font-size-adjust',
    251  underlying: "ch-width 0.5",
    252  addFrom: "ch-width 0",
    253  replaceTo: "ch-width 2.0",
    254 }, [
    255  {at: -0.5, expect: "ch-width 0.0"},
    256  {at: 0, expect: "ch-width 0.5"},
    257  {at: 0.5, expect: "ch-width 1.25"},
    258  {at: 1, expect: "ch-width 2"},
    259  {at: 1.5, expect: "ch-width 2.75"},
    260 ]);
    261 
    262 test_composition({
    263  property: 'font-size-adjust',
    264  underlying: "ch-width 0.5",
    265  replaceFrom: "ch-width 2.0",
    266  addTo: "none",
    267 }, [
    268  {at: -0.5, expect: "ch-width 2.0"},
    269  {at: 0, expect: "ch-width 2.0"},
    270  {at: 0.5, expect: "none"},
    271  {at: 1, expect: "none"},
    272  {at: 1.5, expect: "none"},
    273 ]);
    274 
    275 test_composition({
    276  property: 'font-size-adjust',
    277  underlying: "ic-width 0.5",
    278  replaceFrom: "none",
    279  addTo: "ic-width 2.0",
    280 }, [
    281  {at: -0.5, expect: "none"},
    282  {at: 0, expect: "none"},
    283  {at: 0.5, expect: "ic-width 2.5"},
    284  {at: 1, expect: "ic-width 2.5"},
    285  {at: 1.5, expect: "ic-width 2.5"},
    286 ]);
    287 
    288 test_composition({
    289  property: 'font-size-adjust',
    290  underlying: "ic-width 0.5",
    291  addFrom: "ic-width 0",
    292  addTo: "ic-width 2.0",
    293 }, [
    294  {at: -0.5, expect: "ic-width 0.0"},
    295  {at: 0, expect: "ic-width 0.5"},
    296  {at: 0.5, expect: "ic-width 1.5"},
    297  {at: 1, expect: "ic-width 2.5"},
    298  {at: 1.5, expect: "ic-width 3.5"},
    299 ]);
    300 
    301 test_composition({
    302  property: 'font-size-adjust',
    303  underlying: "ic-width 0.5",
    304  replaceFrom: "ic-width 0",
    305  addTo: "ic-width 2.0",
    306 }, [
    307  {at: -0.5, expect: "ic-width 0.0"},
    308  {at: 0, expect: "ic-width 0.0"},
    309  {at: 0.5, expect: "ic-width 1.25"},
    310  {at: 1, expect: "ic-width 2.5"},
    311  {at: 1.5, expect: "ic-width 3.75"},
    312 ]);
    313 
    314 test_composition({
    315  property: 'font-size-adjust',
    316  underlying: "ic-width 0.5",
    317  addFrom: "ic-width 0",
    318  replaceTo: "ic-width 2.0",
    319 }, [
    320  {at: -0.5, expect: "ic-width 0.0"},
    321  {at: 0, expect: "ic-width 0.5"},
    322  {at: 0.5, expect: "ic-width 1.25"},
    323  {at: 1, expect: "ic-width 2"},
    324  {at: 1.5, expect: "ic-width 2.75"},
    325 ]);
    326 
    327 test_composition({
    328  property: 'font-size-adjust',
    329  underlying: "ic-width 0.5",
    330  replaceFrom: "ic-width 2.0",
    331  addTo: "none",
    332 }, [
    333  {at: -0.5, expect: "ic-width 2.0"},
    334  {at: 0, expect: "ic-width 2.0"},
    335  {at: 0.5, expect: "none"},
    336  {at: 1, expect: "none"},
    337  {at: 1.5, expect: "none"},
    338 ]);
    339 
    340 test_composition({
    341  property: 'font-size-adjust',
    342  underlying: "ic-height 0.5",
    343  replaceFrom: "none",
    344  addTo: "ic-height 2.0",
    345 }, [
    346  {at: -0.5, expect: "none"},
    347  {at: 0, expect: "none"},
    348  {at: 0.5, expect: "ic-height 2.5"},
    349  {at: 1, expect: "ic-height 2.5"},
    350  {at: 1.5, expect: "ic-height 2.5"},
    351 ]);
    352 
    353 test_composition({
    354  property: 'font-size-adjust',
    355  underlying: "ic-height 0.5",
    356  addFrom: "ic-height 0",
    357  addTo: "ic-height 2.0",
    358 }, [
    359  {at: -0.5, expect: "ic-height 0.0"},
    360  {at: 0, expect: "ic-height 0.5"},
    361  {at: 0.5, expect: "ic-height 1.5"},
    362  {at: 1, expect: "ic-height 2.5"},
    363  {at: 1.5, expect: "ic-height 3.5"},
    364 ]);
    365 
    366 test_composition({
    367  property: 'font-size-adjust',
    368  underlying: "ic-height 0.5",
    369  replaceFrom: "ic-height 0",
    370  addTo: "ic-height 2.0",
    371 }, [
    372  {at: -0.5, expect: "ic-height 0.0"},
    373  {at: 0, expect: "ic-height 0.0"},
    374  {at: 0.5, expect: "ic-height 1.25"},
    375  {at: 1, expect: "ic-height 2.5"},
    376  {at: 1.5, expect: "ic-height 3.75"},
    377 ]);
    378 
    379 test_composition({
    380  property: 'font-size-adjust',
    381  underlying: "ic-height 0.5",
    382  addFrom: "ic-height 0",
    383  replaceTo: "ic-height 2.0",
    384 }, [
    385  {at: -0.5, expect: "ic-height 0.0"},
    386  {at: 0, expect: "ic-height 0.5"},
    387  {at: 0.5, expect: "ic-height 1.25"},
    388  {at: 1, expect: "ic-height 2"},
    389  {at: 1.5, expect: "ic-height 2.75"},
    390 ]);
    391 
    392 test_composition({
    393  property: 'font-size-adjust',
    394  underlying: "ic-height 0.5",
    395  replaceFrom: "ic-height 2.0",
    396  addTo: "none",
    397 }, [
    398  {at: -0.5, expect: "ic-height 2.0"},
    399  {at: 0, expect: "ic-height 2.0"},
    400  {at: 0.5, expect: "none"},
    401  {at: 1, expect: "none"},
    402  {at: 1.5, expect: "none"},
    403 ]);
    404 
    405 test_composition({
    406  property: 'font-size-adjust',
    407  underlying: "0.5",
    408  addFrom: "ex-height 0.0",
    409  addTo: "cap-height 2.0",
    410 }, [
    411  {at: -0.5, expect: "0.5"},
    412  {at: 0, expect: "0.5"},
    413  {at: 0.5, expect: "cap-height 2.0"},
    414  {at: 1, expect: "cap-height 2.0"},
    415  {at: 1.5, expect: "cap-height 2.0"},
    416 ]);
    417 
    418 test_composition({
    419  property: 'font-size-adjust',
    420  underlying: "0.5",
    421  replaceFrom: "ex-height 0.0",
    422  replaceTo: "cap-height 2.0",
    423 }, [
    424  {at: -0.5, expect: "0.0"},
    425  {at: 0, expect: "0.0"},
    426  {at: 0.5, expect: "cap-height 2.0"},
    427  {at: 1, expect: "cap-height 2.0"},
    428  {at: 1.5, expect: "cap-height 2.0"},
    429 ]);
    430 
    431 test_composition({
    432  property: 'font-size-adjust',
    433  underlying: "0.5",
    434  replaceFrom: "ex-height 0",
    435  addTo: "cap-height 2.0",
    436 }, [
    437  {at: -0.5, expect: "0.0"},
    438  {at: 0, expect: "0.0"},
    439  {at: 0.5, expect: "cap-height 2.0"},
    440  {at: 1, expect: "cap-height 2.0"},
    441  {at: 1.5, expect: "cap-height 2.0"},
    442 ]);
    443 
    444 test_composition({
    445  property: 'font-size-adjust',
    446  underlying: "0.5",
    447  addFrom: "ex-height 0",
    448  replaceTo: "cap-height 2.0",
    449 }, [
    450  {at: -0.5, expect: "0.5"},
    451  {at: 0, expect: "0.5"},
    452  {at: 0.5, expect: "cap-height 2.0"},
    453  {at: 1, expect: "cap-height 2.0"},
    454  {at: 1.5, expect: "cap-height 2.0"},
    455 ]);
    456 
    457 test_composition({
    458  property: 'font-size-adjust',
    459  underlying: "0.5",
    460  addFrom: "cap-height 0.0",
    461  addTo: "ch-width 2.0",
    462 }, [
    463  {at: -0.5, expect: "cap-height 0.0"},
    464  {at: 0, expect: "cap-height 0.0"},
    465  {at: 0.5, expect: "ch-width 2.0"},
    466  {at: 1, expect: "ch-width 2.0"},
    467  {at: 1.5, expect: "ch-width 2.0"},
    468 ]);
    469 
    470 test_composition({
    471  property: 'font-size-adjust',
    472  underlying: "0.5",
    473  replaceFrom: "cap-height 0.0",
    474  replaceTo: "ch-width 2.0",
    475 }, [
    476  {at: -0.5, expect: "cap-height 0.0"},
    477  {at: 0, expect: "cap-height 0.0"},
    478  {at: 0.5, expect: "ch-width 2.0"},
    479  {at: 1, expect: "ch-width 2.0"},
    480  {at: 1.5, expect: "ch-width 2.0"},
    481 ]);
    482 
    483 test_composition({
    484  property: 'font-size-adjust',
    485  underlying: "0.5",
    486  replaceFrom: "cap-height 0",
    487  addTo: "ch-width 2.0",
    488 }, [
    489  {at: -0.5, expect: "cap-height 0.0"},
    490  {at: 0, expect: "cap-height 0.0"},
    491  {at: 0.5, expect: "ch-width 2.0"},
    492  {at: 1, expect: "ch-width 2.0"},
    493  {at: 1.5, expect: "ch-width 2.0"},
    494 ]);
    495 
    496 test_composition({
    497  property: 'font-size-adjust',
    498  underlying: "0.5",
    499  addFrom: "cap-height 0",
    500  replaceTo: "ch-width 2.0",
    501 }, [
    502  {at: -0.5, expect: "cap-height 0"},
    503  {at: 0, expect: "cap-height 0"},
    504  {at: 0.5, expect: "ch-width 2.0"},
    505  {at: 1, expect: "ch-width 2.0"},
    506  {at: 1.5, expect: "ch-width 2.0"},
    507 ]);
    508 
    509 test_composition({
    510  property: 'font-size-adjust',
    511  underlying: "0.5",
    512  addFrom: "ch-width 0.0",
    513  addTo: "ic-width 2.0",
    514 }, [
    515  {at: -0.5, expect: "ch-width 0.0"},
    516  {at: 0, expect: "ch-width 0.0"},
    517  {at: 0.5, expect: "ic-width 2.0"},
    518  {at: 1, expect: "ic-width 2.0"},
    519  {at: 1.5, expect: "ic-width 2.0"},
    520 ]);
    521 
    522 test_composition({
    523  property: 'font-size-adjust',
    524  underlying: "0.5",
    525  replaceFrom: "ch-width 0.0",
    526  replaceTo: "ic-width 2.0",
    527 }, [
    528  {at: -0.5, expect: "ch-width 0.0"},
    529  {at: 0, expect: "ch-width 0.0"},
    530  {at: 0.5, expect: "ic-width 2.0"},
    531  {at: 1, expect: "ic-width 2.0"},
    532  {at: 1.5, expect: "ic-width 2.0"},
    533 ]);
    534 
    535 test_composition({
    536  property: 'font-size-adjust',
    537  underlying: "0.5",
    538  replaceFrom: "ch-width 0",
    539  addTo: "ic-width 2.0",
    540 }, [
    541  {at: -0.5, expect: "ch-width 0.0"},
    542  {at: 0, expect: "ch-width 0.0"},
    543  {at: 0.5, expect: "ic-width 2.0"},
    544  {at: 1, expect: "ic-width 2.0"},
    545  {at: 1.5, expect: "ic-width 2.0"},
    546 ]);
    547 
    548 test_composition({
    549  property: 'font-size-adjust',
    550  underlying: "0.5",
    551  addFrom: "ch-width 0",
    552  replaceTo: "ic-width 2.0",
    553 }, [
    554  {at: -0.5, expect: "ch-width 0"},
    555  {at: 0, expect: "ch-width 0"},
    556  {at: 0.5, expect: "ic-width 2.0"},
    557  {at: 1, expect: "ic-width 2.0"},
    558  {at: 1.5, expect: "ic-width 2.0"},
    559 ]);
    560 
    561 test_composition({
    562  property: 'font-size-adjust',
    563  underlying: "0.5",
    564  addFrom: "ic-width 0.0",
    565  addTo: "ic-height 2.0",
    566 }, [
    567  {at: -0.5, expect: "ic-width 0.0"},
    568  {at: 0, expect: "ic-width 0.0"},
    569  {at: 0.5, expect: "ic-height 2.0"},
    570  {at: 1, expect: "ic-height 2.0"},
    571  {at: 1.5, expect: "ic-height 2.0"},
    572 ]);
    573 
    574 test_composition({
    575  property: 'font-size-adjust',
    576  underlying: "0.5",
    577  replaceFrom: "ic-width 0.0",
    578  replaceTo: "ic-height 2.0",
    579 }, [
    580  {at: -0.5, expect: "ic-width 0.0"},
    581  {at: 0, expect: "ic-width 0.0"},
    582  {at: 0.5, expect: "ic-height 2.0"},
    583  {at: 1, expect: "ic-height 2.0"},
    584  {at: 1.5, expect: "ic-height 2.0"},
    585 ]);
    586 
    587 test_composition({
    588  property: 'font-size-adjust',
    589  underlying: "0.5",
    590  replaceFrom: "ic-width 0",
    591  addTo: "ic-height 2.0",
    592 }, [
    593  {at: -0.5, expect: "ic-width 0.0"},
    594  {at: 0, expect: "ic-width 0.0"},
    595  {at: 0.5, expect: "ic-height 2.0"},
    596  {at: 1, expect: "ic-height 2.0"},
    597  {at: 1.5, expect: "ic-height 2.0"},
    598 ]);
    599 
    600 test_composition({
    601  property: 'font-size-adjust',
    602  underlying: "0.5",
    603  addFrom: "ic-width 0",
    604  replaceTo: "ic-height 2.0",
    605 }, [
    606  {at: -0.5, expect: "ic-width 0"},
    607  {at: 0, expect: "ic-width 0"},
    608  {at: 0.5, expect: "ic-height 2.0"},
    609  {at: 1, expect: "ic-height 2.0"},
    610  {at: 1.5, expect: "ic-height 2.0"},
    611 ]);
    612 
    613 test_composition({
    614  property: 'font-size-adjust',
    615  underlying: "0.5",
    616  addFrom: "ic-height 0.0",
    617  addTo: "ex-height 2.0",
    618 }, [
    619  {at: -0.5, expect: "ic-height 0.0"},
    620  {at: 0, expect: "ic-height 0.0"},
    621  {at: 0.5, expect: "ex-height 2.5"},
    622  {at: 1, expect: "ex-height 2.5"},
    623  {at: 1.5, expect: "ex-height 2.5"},
    624 ]);
    625 
    626 test_composition({
    627  property: 'font-size-adjust',
    628  underlying: "0.5",
    629  replaceFrom: "ic-height 0.0",
    630  replaceTo: "ex-height 2.0",
    631 }, [
    632  {at: -0.5, expect: "ic-height 0.0"},
    633  {at: 0, expect: "ic-height 0.0"},
    634  {at: 0.5, expect: "ex-height 2.0"},
    635  {at: 1, expect: "ex-height 2.0"},
    636  {at: 1.5, expect: "ex-height 2.0"},
    637 ]);
    638 
    639 test_composition({
    640  property: 'font-size-adjust',
    641  underlying: "0.5",
    642  replaceFrom: "ic-height 0",
    643  addTo: "ex-height 2.0",
    644 }, [
    645  {at: -0.5, expect: "ic-height 0.0"},
    646  {at: 0, expect: "ic-height 0.0"},
    647  {at: 0.5, expect: "ex-height 2.5"},
    648  {at: 1, expect: "ex-height 2.5"},
    649  {at: 1.5, expect: "ex-height 2.5"},
    650 ]);
    651 
    652 test_composition({
    653  property: 'font-size-adjust',
    654  underlying: "0.5",
    655  addFrom: "ic-height 0",
    656  replaceTo: "ex-height 2.0",
    657 }, [
    658  {at: -0.5, expect: "ic-height 0"},
    659  {at: 0, expect: "ic-height 0"},
    660  {at: 0.5, expect: "ex-height 2.0"},
    661  {at: 1, expect: "ex-height 2.0"},
    662  {at: 1.5, expect: "ex-height 2.0"},
    663 ]);
    664 </script>
    665 </body>