tor-browser

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

clip-path-borderBox-1e.html (808B)


      1 <!DOCTYPE html>
      2 <title>CSS Masking: clip path with border-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-border-box">
      5 <link rel="match" href="reference/green-circle-100x100.html">
      6 <meta name="fuzzy" content="maxDifference=0-126; totalPixels=0-400">
      7 <meta name="assert" content="Check that the 'clip-path' property supports border-box with border-radius.">
      8 
      9 <style>
     10  .clipped {
     11    width: 50px;
     12    height: 50px;
     13    background-color: green;
     14    clip-path: border-box;
     15    border: 25px solid green;
     16    border-radius: 50px;
     17    /* This outline draws outside the border box and should be clipped. */
     18    outline: 8px solid red;
     19  }
     20 </style>
     21 <div class="clipped"></div>