tor-browser

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

border-radius-computed.html (1633B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Backgrounds and Borders Module Level 3: getComputedStyle().borderRadius</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-radius">
      7 <meta name="assert" content="Computed value has computed 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("border-radius", "1px");
     21 test_computed_value("border-radius", "1px 2% 3px 4%");
     22 test_computed_value("border-radius", "5em / 1px 2% 3px 4%", "200px / 1px 2% 3px 4%");
     23 test_computed_value("border-radius", "1px 2% 3px 4% / 5em", "1px 2% 3px 4% / 200px");
     24 
     25 test_computed_value("border-radius", "1px 1px 1px 2% / 1px 2% 1px 2%", "1px 1px 1px 2% / 1px 2%");
     26 test_computed_value("border-radius", "1px 1px 1px 1px / 1px 1px 2% 1px", "1px / 1px 1px 2%");
     27 test_computed_value("border-radius", "1px 1px 2% 2%");
     28 test_computed_value("border-radius", "1px 2% 1px 1px");
     29 test_computed_value("border-radius", "1px 2% 2% 2% / 1px 2% 3px 2%", "1px 2% 2% / 1px 2% 3px");
     30 
     31 test_computed_value("border-top-left-radius", "calc(-0.5em + 10px)", "0px");
     32 test_computed_value("border-top-right-radius", "20%");
     33 test_computed_value("border-bottom-right-radius", "calc(0.5em + 10px) 40%", "30px 40%");
     34 test_computed_value("border-bottom-left-radius", "50% 60px");
     35 
     36 test_computed_value("border-top-left-radius", "40px 0px", "40px 0px");
     37 </script>
     38 </body>
     39 </html>