tor-browser

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

perspective-origin-003.html (1287B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Transforms Test: perspective-origin - 50% bottom('bottom' computes to '100%' in vertical position)</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="author" title="Jieqiong Cui" href="mailto:jieqiongx.cui@intel.com">
      6 <link rel="help" title="11. The 'perspective-origin' Property" href="http://www.w3.org/TR/css-transforms-2/#propdef-perspective-origin">
      7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="The 'perspective-origin' property set 'bottom' computes to 100% for the vertical position.">
      9 <style>
     10  div {
     11    height: 100px;
     12    position: absolute;
     13    width: 100px;
     14  }
     15  #test {
     16    perspective: 2px;
     17    perspective-origin: 50% bottom;
     18  }
     19  #redSquare {
     20    background-color: red;
     21    transform: translateZ(0px);
     22  }
     23  #ref {
     24    perspective: 2px;
     25    perspective-origin: 50% 100%;
     26  }
     27  #greenSquare {
     28    background-color: green;
     29    height: 50px;
     30    left: 25px;
     31    top: 50px;
     32    transform: translateZ(1px);
     33    width: 50px;
     34  }
     35 </style>
     36 <body>
     37  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     38  <div id="test"><div id="redSquare"></div></div>
     39  <div id="ref"><div id="greenSquare"></div></div>
     40 </body>