tor-browser

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

mask-image-data-url-image.html (1017B)


      1 <!DOCTYPE html>
      2 <title>CSS Test: mask-image: url(data:...)</title>
      3 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
      4 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#mask-layer-image">
      5 <link rel="match" href="reference/mask-image-data-url-image-ref.html">
      6 <meta name="assert" content="mask-image can use a data: URL as an image">
      7 <style>
      8 #back {
      9  position: absolute;
     10  box-sizing: border-box;
     11  width: 200px;
     12  height: 200px;
     13  border: 60px solid green;
     14  background: blue;
     15 }
     16 #front {
     17  position: absolute;
     18  box-sizing: border-box;
     19  width: 200px;
     20  height: 200px;
     21  border: 40px solid blue;
     22  background: green;
     23  mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGDwAQAAUQBNt+pgmgAAAABJRU5ErkJggg==); /* 1x1 black with 30% transparency */
     24 }
     25 </style>
     26 <p>The test passes if there is a blue-ish square with a 20px green border around it and a 40px blue-green-ish border around that.</p>
     27 <div id="back"></div><div id="front"></div>