tor-browser

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

perspective-untransformable-no-stacking-context.html (1037B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS transforms: 'perspective' on a non-transformable element doesn't create a stacking context</title>
      4 <link rel="author" title="Matt Woodrow" href="mailto:mwoodrow@mozilla.com">
      5 <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
      6 <link rel="help" href="https://drafts.csswg.org/css-transforms-2/#perspective-property">
      7 <link rel="match" href="perspective-untransformable-no-stacking-context-ref.html">
      8 <meta name="assert" content="Perspective on a non-transformable element shouldn't create a stacking context.">
      9 <style>
     10 * { margin: 0; padding: 0; }
     11 div, span { width: 100px; height: 100px }
     12 #perspective { background: green; padding-top: 100px; perspective: 100px; }
     13 #child { display:inline-block; z-index: -1; position:absolute; background: red; }
     14 #spacer { display:inline-block; }
     15 #wrapper { overflow:hidden }
     16 </style>
     17 <body>
     18  <div id="wrapper">
     19    <span id="perspective">
     20      <div id="child">
     21      </div>
     22      <span id="spacer"></span>
     23    </span>
     24  </div>
     25 </body>