tor-browser

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

max-block-size-computed.html (1082B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Logical Properties and Values: getComputedStyle().maxBlockSize</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-max-block-size">
      7 <meta name="assert" content="Computed max-block-size is the specified keyword, or the length-percentage made absolute.">
      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("max-block-size", "none");
     21 
     22 test_computed_value("max-block-size", "10px");
     23 test_computed_value("max-block-size", "20%");
     24 test_computed_value("max-block-size", "calc(10px + 0.5em)", "30px");
     25 test_computed_value("max-block-size", "calc(10px - 0.5em)", "0px");
     26 test_computed_value("max-block-size", "calc(20% + 10px)");
     27 
     28 test_computed_value("max-block-size", "min-content");
     29 test_computed_value("max-block-size", "max-content");
     30 </script>
     31 </body>
     32 </html>