tor-browser

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

mask-clip-6.html (961B)


      1 <!DOCTYPE html>
      2 <title>CSS Masking: mask-clip: clip mask image, foreignObject no-clip</title>
      3 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#the-mask-clip">
      4 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
      5 <meta name="assert" content="no-clip should not clip to the viewport on a foreignObject.">
      6 <style type="text/css">
      7  foreignObject.mask {
      8    mask-origin: view-box;
      9    mask-repeat: no-repeat;
     10    mask-image: url(support/50x50-opaque-blue.svg);
     11    mask-size: 100px 100px;
     12    mask-clip: no-clip;
     13    overflow: visible;
     14  }
     15 
     16  foreignObject.mask > div.content {
     17    background-color: green;
     18    position: absolute;
     19    left: -50px;
     20    top: -20px;
     21    width: 150px;
     22    height: 150px;
     23  }
     24 </style>
     25 <p>Test passes if there is a filled green square.</p>
     26 <svg width="200" height="200">
     27  <foreignObject class="mask" x="50" y="20" width="50" height="100">
     28    <div class="content"></div>
     29  </foreignObject>
     30 </svg>