tor-browser

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

z-index-does-not-apply.html (726B)


      1 <!doctype html>
      2 <title>z-index doesn't apply to transformed content which is not positioned</title>
      3 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      4 <link rel="author" title="Mozilla" href="https://mozilla.org">
      5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256980">
      6 <link rel="help" href="https://drafts.csswg.org/css2/visuren.html#z-index">
      7 <link rel="match" href="z-index-does-not-apply-ref.html">
      8 <style>
      9  #a, #b {
     10    background: green;
     11    width: 100px;
     12    height: 100px;
     13  }
     14  #a {
     15    background: red;
     16    z-index: 2;
     17    transform: translateX(0);
     18  }
     19  #b {
     20    z-index: 1;
     21    transform: translateY(-100px);
     22  }
     23 </style>
     24 <div id="a"></div>
     25 <div id="b"></div>