tor-browser

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

ellipse-function-valid.html (1761B)


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