clip-path-shape-003.html (798B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Masking: Test clip-path property and shape function with nonzero fill</title> 5 <link rel="help" href="https://drafts.csswg.org/css-shapes-2/#funcdef-shape"> 6 <link rel="match" href="reference/clip-path-shape-003-ref.html"> 7 <meta name="assert" content="The clip-path property takes the basic shape 8 'shape()' for clipping. Test curves."> 9 </head> 10 <style> 11 #rect { 12 width: 100px; 13 height: 100px; 14 background-color: green; 15 clip-path: shape(nonzero from 10px 10px, 16 curve to 60px 20% with 40px 0, 17 smooth to 90px 0, 18 curve by -20px 60% with 10% 40px / 20% 20px, 19 smooth by -40% -10px with -10px 70px); 20 } 21 </style> 22 <body> 23 <div id="rect"></div> 24 </body> 25 </html>