tor-browser

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

circle-function-computed.html (1910B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Shapes Module Level 1: the computed value of the circle() function</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-circle">
      7 <meta name="assert" content="Tests parsing of the circle() function">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/computed-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <div id="target"></div>
     14 <script>
     15 test_computed_value("shape-outside", "circle()");
     16 test_computed_value("shape-outside", "circle(1px)");
     17 test_computed_value("shape-outside", "circle(20px at center)", "circle(20px at 50% 50%)");
     18 test_computed_value("shape-outside", "circle(at 10% 20%)");
     19 test_computed_value("shape-outside", "circle(4% at top right)", "circle(4% at 100% 0%)");
     20 test_computed_value("shape-outside", "circle(calc(100% - 20px) at calc(100% - 20px) calc(100% / 4))", "circle(calc(100% - 20px) at calc(100% - 20px) 25%)");
     21 
     22 test_computed_value("shape-outside", "circle(closest-corner at center)", "circle(closest-corner at 50% 50%)");
     23 test_computed_value("shape-outside", "circle(closest-corner at 20px 50px)", "circle(closest-corner at 20px 50px)");
     24 test_computed_value("shape-outside", "circle(closest-side at center)", "circle(at 50% 50%)");
     25 test_computed_value("shape-outside", "circle(closest-side at 20px 30%)", "circle(at 20px 30%)");
     26 test_computed_value("shape-outside", "circle(farthest-corner at center top)", "circle(farthest-corner at 50% 0%)");
     27 test_computed_value("shape-outside", "circle(farthest-corner at center)", "circle(farthest-corner at 50% 50%)");
     28 test_computed_value("shape-outside", "circle(farthest-side at center top)", "circle(farthest-side at 50% 0%)");
     29 test_computed_value("shape-outside", "circle(farthest-side at center)", "circle(farthest-side at 50% 50%)");
     30 </script>
     31 </body>
     32 </html>