tor-browser

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

border-image-width-computed.html (1365B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Backgrounds and Borders: getComputedStyle().borderImageWidth</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-width">
      7 <meta name="assert" content="border-image-width computed value is four values, each either a number, the keyword auto, 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("border-image-width", "0");
     21 test_computed_value("border-image-width", "1");
     22 test_computed_value("border-image-width", "auto");
     23 test_computed_value("border-image-width", "10px");
     24 test_computed_value("border-image-width", "20%");
     25 test_computed_value("border-image-width", "calc(20% + 10px)");
     26 test_computed_value("border-image-width", "calc(-0.5em + 10px)", "0px");
     27 test_computed_value("border-image-width", "calc(0.5em + 10px)", "30px");
     28 test_computed_value("border-image-width", "1 auto");
     29 test_computed_value("border-image-width", "1 auto 10px");
     30 test_computed_value("border-image-width", "1 auto 10px 20%");
     31 test_computed_value("border-image-width", "20% 10px auto 1");
     32 </script>
     33 </body>
     34 </html>