tor-browser

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

baseline-shift-computed.html (1030B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Inline Layout: getComputedStyle().baselineShift</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#baseline-shift-property">
      7 <meta name="assert" content="baseline-shift computed value is the specified keyword or a computed length-percentage value.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/computed-testcommon.js"></script>
     11 <style>
     12  #target {
     13    font-size: 40px;
     14  }
     15 </style>
     16 </head>
     17 <body>
     18 <div id="target"></div>
     19 <script>
     20 test_computed_value("baseline-shift", "-10px");
     21 test_computed_value("baseline-shift", "20%");
     22 test_computed_value("baseline-shift", "calc(10px - 0.5em)", "-10px");
     23 
     24 test_computed_value("baseline-shift", "sub");
     25 test_computed_value("baseline-shift", "super");
     26 test_computed_value("baseline-shift", "bottom");
     27 test_computed_value("baseline-shift", "center");
     28 test_computed_value("baseline-shift", "top");
     29 </script>
     30 </body>
     31 </html>