tor-browser

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

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


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>CSS Masking: Test clip-path property and polygon function with fill rule nonzero</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-rectangle-border-ref.html">
      9 <meta name="assert" content="The clip-path property takes the basic shape
     10 'polygon' for clipping. The point list for the polygon creates a 'hole'
     11 with the dimension of the background of the clipped element. With the fill
     12 rule 'nonzero', this hole is clipped out. The clipping makes the green
     13 background of the parent div box visible. On pass you should see a green
     14 square with a blue border.">
     15 </head>
     16 <body>
     17 <p>The test passes if there is a green box with a blue border.</p>
     18 <div style="background-color: green; width: 250px;">
     19 	<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>
     20 </div>
     21 </body>
     22 </html>