tor-browser

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

letter-spacing-composition.html (1331B)


      1 <!DOCTYPE html>
      2 <meta charset="UTF-8">
      3 <title>letter-spacing composition</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-text-3/#letter-spacing-property">
      5 <meta name="test" content="letter-spacing supports animation by computed value type">
      6 
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="/css/support/interpolation-testcommon.js"></script>
     10 
     11 <body>
     12 <script src="../interpolation/resources/interpolation-test.js"></script>
     13 <script>
     14 test_composition({
     15  property: 'letter-spacing',
     16  underlying: '50px',
     17  addFrom: '100px',
     18  addTo: '200px',
     19 }, [
     20  {at: -0.3, expect: '120px'},
     21  {at: 0, expect: '150px'},
     22  {at: 0.5, expect: '200px'},
     23  {at: 1, expect: '250px'},
     24  {at: 1.5, expect: '300px'},
     25 ]);
     26 
     27 test_composition({
     28  property: 'letter-spacing',
     29  underlying: '100px',
     30  addFrom: '10px',
     31  addTo: '2px',
     32 }, [
     33  {at: -0.5, expect: '114px'},
     34  {at: 0, expect: '110px'},
     35  {at: 0.5, expect: '106px'},
     36  {at: 1, expect: '102px'},
     37  {at: 1.5, expect: '98px'},
     38 ]);
     39 
     40 test_composition({
     41  property: 'letter-spacing',
     42  underlying: '50px',
     43  addFrom: '100px',
     44  replaceTo: '200px',
     45 }, [
     46  {at: -0.3, expect: '135px'},
     47  {at: 0, expect: '150px'},
     48  {at: 0.5, expect: '175px'},
     49  {at: 1, expect: '200px'},
     50  {at: 1.5, expect: '225px'},
     51 ]);
     52 </script>
     53 </body>