clip-path-circle-006.html (1058B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Masking: Test clip-path property and circle function with farthest-side</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/#the-clip-path"> 8 <link rel="match" href="reference/clip-path-circle-ref.html"> 9 <meta name="fuzzy" content="0-38; 0-800"> 10 <meta name="assert" content="The clip-path property takes the basic shape 11 'circle' for clipping. The circle has a radius of 'farthest-side'. This 12 test has a squred div-box. Therefore, 'closest-side', 50% and 13 'farthest-side' show the same behavior. On pass there should be a green 14 circle."> 15 <meta name="fuzzy" content="maxDifference=0-60; totalPixels=0-900"> 16 </head> 17 <body> 18 <p>The test passes if there is a full green circle.</p> 19 <div style="width: 200px; height: 200px; background-color: green; clip-path: circle(farthest-side);"></div> 20 </body> 21 </html>