clip-path-ellipse-006.html (984B)
1 <!-- 2 Any copyright is dedicated to the Public Domain. 3 http://creativecommons.org/publicdomain/zero/1.0/ 4 --> 5 <!DOCTYPE html> 6 <html> 7 <head> 8 <title>CSS Masking: Test clip-path property and ellipse function with position 001</title> 9 <link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com"> 10 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#clipping-paths"> 11 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#propdef-clip-path"> 12 <link rel="match" href="clip-path-ellipse-001-ref.html"> 13 <meta name="assert" content="The clip-path property takes the basic shape 14 ellipse with a position for clipping of a rectangle. On pass you should see 15 a green horizontal ellipse."> 16 </head> 17 <body> 18 <p>The test passes if there is a green horizontal ellipse.</p> 19 <div style="width: 400px; height: 200px; padding-left: 200px; background-color: green; clip-path: ellipse(200px closest-side at left center) content-box;"></div> 20 </body> 21 </html>