tor-browser

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

gap-computed.html (1136B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Box Alignment Level 3: getComputedStyle().gap</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-gap">
      7 <meta name="assert" content="gap computed value is a pair of keyword or <length-percentage> values.">
      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("gap", "normal");
     21 test_computed_value("gap", "10px");
     22 test_computed_value("gap", "20%");
     23 test_computed_value("gap", "calc(20% + 10px)");
     24 test_computed_value("gap", "calc(-0.5em + 10px)", "0px");
     25 test_computed_value("gap", "calc(0.5em + 10px)", "30px");
     26 
     27 test_computed_value("gap", "normal 10px");
     28 test_computed_value("gap", "10px 20%");
     29 test_computed_value("gap", "20% calc(20% + 10px)");
     30 test_computed_value("gap", "calc(20% + 10px) normal");
     31 
     32 test_computed_value("gap", "calc(-0.5em + 10px) calc(0.5em + 10px)", "0px 30px");
     33 </script>
     34 </body>
     35 </html>