tor-browser

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

clip-path-marginBox-1c.html (868B)


      1 <!DOCTYPE html>
      2 <title>CSS Masking: clip path with margin-box and border-radius</title>
      3 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
      4 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-margin-box">
      5 <link rel="match" href="reference/green-circle-100x100.html">
      6 <meta name="fuzzy" content="maxDifference=0-98; totalPixels=0-424">
      7 <meta name="assert" content="Check that the 'clip-path' property supports margin-box with border-radius.">
      8 
      9 <style>
     10  .clipped {
     11    width: 50px;
     12    height: 50px;
     13    background-color: green;
     14    clip-path: margin-box;
     15    border-radius: 50px;
     16    /* This outline draws far outside the margin box and should be partially clipped. */
     17    outline: 200px solid green;
     18    margin: 25px;
     19    /* Disables margin collapsing. */
     20    float: left;
     21  }
     22 </style>
     23 <div class="clipped"></div>