tor-browser

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

gap-decorations-width-computed.html (1532B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Gap Decoration: column-rule-width getComputedStyle()</title>
      6 <link rel="help" href="https://kbabbitt.github.io/css-gap-decorations/pr-11115/Overview.html#column-row-rule-width">
      7 <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
      8 <meta name="assert" content="*-rule-width computed value is as specified.">
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 <script src="/css/support/computed-testcommon.js"></script>
     12 </head>
     13 <body>
     14 <div id="target"></div>
     15 <style>
     16  #target {
     17    font-size: 40px;
     18    column-rule-style: dotted;
     19    row-rule-style: dashed;
     20  }
     21 </style>
     22 <script>
     23 
     24 const properties = ["column-rule-width", "row-rule-width", "rule-width"];
     25 for (let property of properties) {
     26  test_computed_value(property, "calc(10px + 0.5em)", "30px");
     27  test_computed_value(property, "calc(10px - 0.5em)", "0px");
     28 
     29  test_computed_value(property, "2px 4px 6px", "2px 4px 6px");
     30 
     31  test_computed_value(property, "repeat(4, 2px)", "repeat(4, 2px)");
     32 
     33  test_computed_value(property, "repeat(auto, 10px)", "repeat(auto, 10px)");
     34 
     35  test_computed_value(property, "repeat(calc(5 + 3), 10px)", "repeat(8, 10px)");
     36 
     37  test_computed_value(property, "repeat(5, 10px calc(10px + 0.5em))", "repeat(5, 10px 30px)");
     38 
     39  test_computed_value(property, "repeat(auto, min(5px, 10px)) repeat(5, 10px) calc(10px + 0.5em)", "repeat(auto, 5px) repeat(5, 10px) 30px");
     40 }
     41 </script>
     42 </body>
     43 </html>