tor-browser

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

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


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