tor-browser

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

mask-position-1a.html (1357B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>CSS Masking: mask-position: mask positioning</title>
      6    <link rel="author" title="Astley Chen" href="mailto:aschen@mozilla.com">
      7    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
      8    <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-mask-position">
      9    <link rel="match" href="mask-position-1-ref.html">
     10    <meta name="assert" content="Test checks whether positioning mask layer works correctly or not.">
     11    <style type="text/css">
     12      div {
     13        width: 100px;
     14        height: 100px;
     15      }
     16 
     17      div.outer {
     18        border: 1px solid black;
     19      }
     20 
     21      div.inner {
     22        background-color: purple;
     23        mask-image: url(support/50x50-opaque-blue.svg);
     24        mask-repeat: no-repeat;
     25      }
     26 
     27      #inner1 { mask-position: right 20% bottom 70%; }
     28      #inner2 { mask-position: bottom 70% right 20%; }
     29      #inner3 { mask-position: right 30px bottom 25px; }
     30      #inner4 { mask-position: bottom 25px right 30px; }
     31    </style>
     32  </head>
     33  <body>
     34    <div class="outer"><div class="inner" id="inner1"></div></div>
     35    <div class="outer"><div class="inner" id="inner2"></div></div>
     36    <div class="outer"><div class="inner" id="inner3"></div></div>
     37    <div class="outer"><div class="inner" id="inner4"></div></div>
     38  </body>
     39 </html>