clip-path-stripes-002-ref.html (842B)
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: Reftest reference</title> 9 <link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com"> 10 </head> 11 <style> 12 div { 13 width: 50px; 14 height: 50px; 15 background-color: green; 16 padding: 25px; 17 margin: 25px; 18 border: red solid 25px; 19 border-left: lime solid 25px; 20 } 21 </style> 22 <body> 23 <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> 24 <div style="clip-path: polygon(12.5% 25%, 37.5% 50px, 75px 50%, 25px 100px) margin-box"></div> 25 <svg> 26 <clipPath id="c1"> 27 <rect x="0" y="50" width="50" height="50"/> 28 </clipPath> 29 </svg> 30 </body> 31 </html>