tor-browser

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

mask-size-contain-clip-padding.html (1096B)


      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-contain-clip-padding-ref.html">
     10    <meta name="assert" content="Test checks whether sizing mask layer works correctly or not.">
     11    <style type="text/css">
     12      #outer {
     13        border: 1px solid black;
     14        width: 64px;
     15        height: 128px;
     16      }
     17 
     18      #inner {
     19        background-color: purple;
     20        border: 20px solid transparent;
     21        width: 24px;
     22        height: 88px;
     23        mask-image: url(support/50x50-opaque-blue.svg);
     24        mask-repeat: no-repeat;
     25        mask-position: left top;
     26        mask-clip: padding-box;
     27        mask-origin: padding-box;
     28        mask-size: contain;
     29      }
     30    </style>
     31  </head>
     32  <body>
     33    <div id="outer"><div id="inner"></div></div>
     34  </body>
     35 </html>