tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

clip-negative-values-001.html (953B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Masking: Test clip property does not clip on with negative values - 1</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-full-ref.html">
      9    <meta name="assert" content="Negative values are permitted on rect function
     10    for clip. Test that whole element is clipped if bottom edge is before top
     11    edge. On pass you should see a green square and no red.">
     12 </head>
     13 <body>
     14    <p>The test passes if there is a green square and no red.</p>
     15    <div style="background-color: green; width: 200px; height: 200px;">
     16        <div style="width: 200px; height: 200px; background-color: red; position: absolute; clip: rect(0, -50px, 200px, 50px);"></div>
     17    </div>
     18 </body>
     19 </html>