tor-browser

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

mask-origin-1.html (1607B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>CSS Masking: mask-origin: mask positioning area</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-origin">
      9    <link rel="match" href="mask-origin-1-ref.html">
     10    <meta name="assert" content="Test checks whether setting mask position area works correctly or not.">
     11    <style type="text/css">
     12      div.outer {
     13        border: 1px solid black;
     14        width: 100px;
     15        height: 100px;
     16      }
     17 
     18      div.inner {
     19        /*
     20         * content box: 60 x 60
     21         * padding box: 72 x 78
     22         * border  box: 80 x 90
     23         * margin  box: 86 x 94
     24         */
     25        margin: 1px 2px 3px 4px;
     26        border: solid transparent;
     27        border-width: 8px 2px 4px 6px;
     28        padding: 6px 9px 12px 3px;
     29        width: 60px;
     30        height: 60px;
     31        background-color: purple;
     32        mask-image: url(support/50x50-opaque-blue.svg);
     33        mask-repeat: no-repeat;
     34        mask-position: left top;
     35      }
     36 
     37      #border { mask-origin: border-box; }
     38      #padding { mask-origin: padding-box; }
     39      #content { mask-origin: content-box; }
     40    </style>
     41  </head>
     42  <body>
     43    <div class="outer"><div class="inner"></div></div>
     44    <div class="outer"><div class="inner" id="border"></div></div>
     45    <div class="outer"><div class="inner" id="padding"></div></div>
     46    <div class="outer"><div class="inner" id="content"></div></div>
     47  </body>
     48 </html>