tor-browser

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

font-weight-composition.html (870B)


      1 <!DOCTYPE html>
      2 <meta charset="UTF-8">
      3 <title>font-weight composition</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-fonts-3/#propdef-font-weight">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="/css/support/interpolation-testcommon.js"></script>
      8 <body>
      9 <script>
     10 test_composition({
     11  property: 'font-weight',
     12  underlying: '500',
     13  addFrom: '100',
     14  addTo: '500',
     15 }, [
     16  {at: -0.3, expect: '480'},
     17  {at: 0, expect: '600'},
     18  {at: 0.5, expect: '800'},
     19  {at: 1, expect: '1000'},
     20  {at: 1.5, expect: '1000'},
     21 ]);
     22 
     23 test_composition({
     24  property: 'font-weight',
     25  underlying: '200',
     26  addFrom: '600',
     27  replaceTo: '500',
     28 }, [
     29  {at: -0.3, expect: '889.75'},
     30  {at: 0, expect: '800'},
     31  {at: 0.5, expect: '650'},
     32  {at: 1, expect: '500'},
     33  {at: 1.5, expect: '350'},
     34 ]);
     35 </script>
     36 </body>