clip-path-xywh-003.html (751B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Masking: Test clip-path property and xywh function</title> 5 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-xywh"> 6 <link rel="match" href="reference/clip-path-xywh-003-ref.html"> 7 <meta name=fuzzy content="maxDifference=0-62;totalPixels=0-250"> 8 <meta name="assert" content="The clip-path property takes the basic shape 9 'xywh()' for clipping. On pass you should see a green rect with round."> 10 </head> 11 <style> 12 #rect { 13 width: 400px; 14 height: 200px; 15 background-color: green; 16 clip-path: xywh(50px 50px 150px 100px round 20px / 20px); 17 } 18 </style> 19 <body> 20 <p>The test passes if there is a green box with round.</p> 21 <div id="rect"></div> 22 </body> 23 </html>