tor-browser

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

mask-composite-2b.html (1395B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>CSS Masking: mask-composite: compose raster image</title>
      6    <link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
      7    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
      8    <link rel="help" href="http://www.w3.org/TR/css-masking-1/#the-mask-composite">
      9    <link rel="match" href="mask-composite-2-ref.html">
     10    <meta name="assert" content="Test checks that raster-mask-image can be composed correctly by different mask-composite value.">
     11    <style type="text/css">
     12      div {
     13        background-color: blue;
     14        position: absolute;
     15        margin: 0px;
     16        padding: 0px;
     17        width: 100px;
     18        height: 100px;
     19        top:10px;
     20        mask-image: url(support/blue-100x50-transparent-100x50.png),
     21                    url(support/transparent-100x50-blue-100x50.png);
     22      }
     23 
     24      div.add {
     25        left: 10px;
     26        mask-composite: add;
     27      }
     28 
     29      div.subtract {
     30        left: 120px;
     31        mask-composite: subtract;
     32      }
     33 
     34      div.intersect {
     35        left: 230px;
     36        mask-composite: intersect;
     37      }
     38 
     39      div.exclude {
     40        left: 340px;
     41        mask-composite: exclude;
     42      }
     43    </style>
     44  </head>
     45  <body>
     46    <div class="add"></div>
     47    <div class="subtract"></div>
     48    <div class="intersect"></div>
     49    <div class="exclude"></div>
     50  </body>
     51 </html>