tor-browser

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

mask-size-length-percent.html (976B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>CSS Masking: mask-size: mask layer size</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-size">
      9    <link rel="match" href="mask-size-length-percent-ref.html">
     10    <meta name="assert" content="Test checks whether sizing mask layer works correctly or not.">
     11    <style type="text/css">
     12      div {
     13        width: 64px;
     14        height: 128px;
     15      }
     16 
     17      #outer {
     18        border: 1px solid black;
     19      }
     20 
     21      #inner {
     22        background-color: purple;
     23        mask-image: url(support/50x100-opaque-blue.svg);
     24        mask-repeat: no-repeat;
     25        mask-position: left top;
     26        mask-size: 16px 25%;
     27      }
     28    </style>
     29  </head>
     30  <body>
     31    <div id="outer">
     32      <div id="inner"></div>
     33    </div>
     34  </body>
     35 </html>