tor-browser

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

clip-path-reference-box-003.html (929B)


      1 <!DOCTYPE html>
      2 <title>CSS Masking: clip path reference box with transform</title>
      3 <link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
      4 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
      5 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=418484">
      6 <link rel="match" href="reference/clip-path-reference-box-003-ref.html">
      7 <meta name="assert" content="Check that the 'clip-path' property uses the border box as the reference box when using transform.">
      8 
      9 <style>
     10 .clipped {
     11  width: 100px;
     12  height: 200px;
     13  background-color: green;
     14  clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%);
     15 }
     16 .abs {
     17  position: absolute;
     18  width: 200px;
     19  height: 200px;
     20 }
     21 </style>
     22 <div class="abs">
     23  <div class="clipped" style="position: absolute; overflow: hidden">
     24    <div class="abs" style="transform: translate(0px, 100px); background-color: red;"></div>
     25  </div>
     26 </div>