tor-browser

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

clip-path-ellipse-closest-farthest-corner.html (1268B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Masking: Test clip-path property and ellipse function with absolute values</title>
      5    <link rel="help" href="http://www.w3.org/TR/css-masking-1/#clipping-paths">
      6    <link rel="help" href="http://www.w3.org/TR/css-masking-1/#propdef-clip-path">
      7    <link rel="match" href="reference/clip-path-ellipse-2-ref.html">
      8    <meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-300">
      9    <meta name="assert" content="The clip-path property takes the basic shape
     10        'ellipse' for clipping. Test the farthest-corner and closest-corner radial size keywords.">
     11    <style>
     12        .test {
     13            position: absolute;
     14            left: 150px;
     15            top: 100px;
     16            width: 250px;
     17            height: 275px;
     18            background-color: red;
     19            clip-path: ellipse(farthest-corner closest-corner at 175px 100px);
     20        }
     21 
     22        .inner {
     23            position: absolute;
     24            top: -60px;
     25            left: -110px;
     26            width: 550px;
     27            height: 420px;
     28            background-color: green;
     29        }
     30    </style>
     31 </head>
     32 <body>
     33    <p>The test passes if there is a full green ellipse.</p>
     34    <div class="test">
     35        <div class="inner"></div>
     36    </div>
     37 </body>
     38 </html>