tor-browser

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

clip-path-blending-offset.html (661B)


      1 <!DOCTYPE html>
      2 <title>CSS Masking: Test clip-path with mix-blend-mode with offset</title>
      3 <link rel="author" title="Xianzhu Wang" href="mailto:wangxianzhu@chromium.org">
      4 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#the-clip-path">
      5 <link rel="match" href="clip-path-blending-offset-ref.html">
      6 <style>
      7 div {
      8  width: 100px;
      9  height: 100px;
     10 }
     11 #clip-path {
     12  overflow: hidden;
     13  background: green;
     14  clip-path: polygon(0 0, 100px 0, 100px 30px, 30px 30px, 30px 100px, 0 100px);
     15 }
     16 #blend {
     17  position: absolute;
     18  mix-blend-mode: multiply;
     19  left: 40px;
     20  top: 50px;
     21  background: red;
     22 }
     23 </style>
     24 <div id="clip-path">
     25  <div id="blend"></div>
     26 </div>