tor-browser

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

transform-abspos-001.html (1344B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Test (Transforms): Containing Block for Absolute Positioning (left/top)</title>
      5    <link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com">
      6    <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
      7    <link rel="reviewer" title="Apple Inc." href="http://www.apple.com">
      8    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
      9    <meta name="assert" content='"In the HTML namespace, any value other than
     10    &apos;none&apos; for the transform results in the creation of . . . a
     11    containing block."  This means absolutely positioned elements need to be
     12    rooted at a transformed ancestor, just as though it had non-static
     13    position.'>
     14    <link rel="match" href="transform-abspos-ref.html">
     15    <style>
     16      body > div {
     17        width: 100px;
     18        height: 200px;
     19        transform: translate(50px, 50px);
     20        background: gold;
     21      }
     22      body > div > div {
     23        width: 200px;
     24        height: 100px;
     25        position: absolute;
     26        left: 50px;
     27        top: 100px;
     28        background: navy;
     29        color: gold;
     30      }
     31    </style>
     32  </head>
     33  <body>
     34    <div>
     35      A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
     36      <div>
     37        0 1 2 3 4 5 6 7 8 9
     38      </div>
     39    </div>
     40  </body>
     41 </html>