clip-path-ellipse-008.html (1194B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Masking: Test clip-path property and ellipse function with 50% 50%</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/#propdef-clip-path"> 8 <link rel="match" href="reference/clip-path-ellipse-ref.html"> 9 <meta name="fuzzy" content="0-38; 0-400"> 10 <meta name="assert" content="The clip-path property takes the basic shape 11 'ellipse' for clipping. Test percentage values for radii and position 12 arguments. Percentage values are relative to a reference box. If no 13 reference box was specified, percentage values are relative to border-box. 14 Both radii are specified with percentage values. The position is 15 initialised to the center of the element. On pass there is a full green 16 ellipse."> 17 <meta name="fuzzy" content="maxDifference=0-59; totalPixels=0-600"> 18 </head> 19 <body> 20 <p>The test passes if there is a full green ellipse.</p> 21 <div style="width: 150px; height: 100px; position: absolute; margin: 50px; background-color: green; clip-path: ellipse(50% 50%);"></div> 22 </body> 23 </html>