tor-browser

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

block-step-size-computed.html (972B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>CSS Rhythm: block-step-size computed values</title>
      5 <link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
      6 <link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-size">
      7 <meta name="assert" content="Checking computed values for block-step-size">
      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("block-step-size", "0px");
     21    test_computed_value("block-step-size", "none");
     22    test_computed_value("block-step-size", "100px");
     23    test_computed_value("block-step-size", "2em", "80px");
     24    test_computed_value("block-step-size", "calc(10px + 0.5em)", "30px");
     25    test_computed_value("block-step-size", "calc(10px - 0.5em)", "0px");
     26 </script>
     27 </body>
     28 </html>