tor-browser

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

clip-path-polygon-007.html (1224B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>CSS Masking: Test clip-path and polygon with border-box</title>
      5 <link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com">
      6 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#clipping-paths">
      7 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#propdef-clip-path">
      8 <link rel="match" href="reference/clip-path-stripes-001-ref.html">
      9 <meta name="assert" content="The clip-path property allows specifying
     10 basic shapes and reference boxes. This test checks the usage of the correct
     11 reference box 'border-box' for the polygon() function by mixing percentage
     12 and absolute values as coordinates. On sucess you should see a green
     13 vertical stripe next to a lime green vertical stripe. Both should be of equal
     14 size.">
     15 <style>
     16 div {
     17 width: 50px;
     18 height: 50px;
     19 background-color: green;
     20 padding: 25px;
     21 margin: 25px;
     22 border: red solid 50px;
     23 border-left: lime solid 50px;
     24 }
     25 </style>
     26 <body>
     27 <p>The test passes if you see a green vertical stripe next to a lime green vertical stripe, both stripes should be of equal size and there should be no red.</p>
     28 <div style="clip-path: polygon(0% 25%, 50% 50px, 100px 75%, 0 150px) border-box"></div>
     29 </body>
     30 </html>