tor-browser

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

will-change-stacking-context-mask-image-1.html (834B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS will-change: 'will-change: mask-image' creates a stacking context</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-will-change-1/#will-change">
      5 <link rel="help" href="http://www.w3.org/TR/css-masking/#the-mask-image">
      6 <link rel="match" href="green-square-100-by-100-ref.html">
      7 <meta name="assert" content="If any non-initial value of a property would create a stacking context on the element, specifying that property in will-change must create a stacking context on the element.">
      8 <style>
      9 html, body { margin: 0; padding: 0; }
     10 div { width: 100px; height: 100px }
     11 #wc { will-change: mask-image; background: red }
     12 #child { position: absolute; top: 0; left: 0; z-index: -1; background: green }
     13 </style>
     14 <body>
     15  <div id="wc">
     16    <div id="child">
     17    </div>
     18  </div>
     19 </body>