clip-negative-values-004.html (875B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Masking: Test clip property does not clip on with negative values - 4</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/#clip-property"> 8 <link rel="match" href="reference/clip-horizontal-stripe-ref.html"> 9 <meta name="assert" content="Negative values are permitted on rect function 10 for clip. Test that top edge can be negative. On pass you should see a 11 horizontal blue stripe."> 12 </head> 13 <body> 14 <p>The test passes if there is only a horizontal blue stripe.</p> 15 <div style="width: 100px; height: 100px; border: solid blue 50px; background-color: green; position: absolute; clip: rect(-50px, 200px, 50px, 0);"></div> 16 </body> 17 </html>