clip-path-path-002.html (721B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Masking: Test clip-path property and path function with evenodd fill</title> 5 <link rel="help" href="https://drafts.csswg.org/css-shapes-2/#funcdef-path"> 6 <link rel="match" href="reference/clip-path-path-002-ref.html"> 7 <meta name="assert" content="The clip-path property takes the basic shape 8 'path()' for clipping. Test evenodd path function. On pass you should 9 see a hollow green square."> 10 </head> 11 <style> 12 #rect { 13 width: 100px; 14 height: 100px; 15 background-color: green; 16 clip-path: path(evenodd, 'M10,10h80v80h-80zM25,25h50v50h-50z'); 17 } 18 </style> 19 <body> 20 <p>The test passes if there are a green hollow rect.</p> 21 <div id="rect"></div> 22 </body> 23 </html>