tor-browser

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

clip-path-polygon-001.html (853B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>CSS Masking: Test clip-path property and polygon function with absolute values</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-ref.html">
      9 <meta name="assert" content="The clip-path property takes the basic shape
     10 'polygon' for clipping. Test absolute value arguments. On pass you should
     11 see a green square and no red.">
     12 </head>
     13 <body>
     14 <p>The test passes if there is a green box.</p>
     15 <div style="width: 150px; height: 100px; border: solid red 50px; background-color: green; clip-path: polygon(50px 50px, 200px 50px, 200px 150px, 50px 150px)"></div>
     16 </body>
     17 </html>