tor-browser

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

border-image-slice-computed.html (1212B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Backgrounds and Borders: getComputedStyle().borderImageSlice</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-slice">
      7 <meta name="assert" content="border-image-slice computed value is four values, each either a number or percentage; plus a fill keyword if specified.">
      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  #container {
     13    container-type: inline-size;
     14    width: 100px;
     15  }
     16 </style>
     17 </head>
     18 <body>
     19 <div id="container">
     20  <div id="target"></div>
     21 </div>
     22 <script>
     23 
     24 test_computed_value("border-image-slice", "1");
     25 test_computed_value("border-image-slice", "1 2%");
     26 test_computed_value("border-image-slice", "1 2% 3");
     27 test_computed_value("border-image-slice", "1 2% 3 4%");
     28 
     29 test_computed_value("border-image-slice", "1% 2 3% 4 fill");
     30 
     31 test_computed_value("border-image-slice", 'calc(10 + (sign(2cqw - 10px) * 5))', '5');
     32 test_computed_value("border-image-slice", 'calc(10 + (sign(2cqw - 10px) * 5)) calc(20% + (sign(2cqw - 10px) * 5%))', '5 15%');
     33 </script>
     34 </body>
     35 </html>