tor-browser

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

clip-path-polygon-005.html (1359B)


      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 property and polygon function with fill rule nonzero</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-rectangle-border-ref.html">
     13  <meta name="assert" content="The clip-path property takes the basic shape
     14    'polygon' for clipping. The point list for the polygon creates a 'hole'
     15    with the dimension of the background of the clipped element. With the fill
     16    rule 'nonzero', this hole is clipped out. The clipping makes the green
     17    background of the parent div box visible. On pass you should see a green
     18    square with a blue border.">
     19 </head>
     20 <body>
     21  <p>The test passes if there is a green rectangle with a blue border.</p>
     22  <div style="background-color: green; width: 250px;">
     23    <div style="width: 150px; height: 100px; border: solid blue 50px; background-color: red; clip-path: polygon(nonzero, 0 0, 250px 0, 250px 200px, 0 200px, 0 50px, 50px 50px, 50px 150px, 200px 150px, 200px 50px, 0 50px)"></div>
     24  </div>
     25 </body>
     26 </html>