tor-browser

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

transform-abspos-005.html (1356B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Test (Transforms): Containing Block for Absolute Positioning (bottom/right)</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="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
      8    <meta name="assert" content='"In the HTML namespace, any value other than
      9    &apos;none&apos; for the transform results in the creation of . . . a
     10    containing block."  This means absolutely positioned elements need to be
     11    rooted at a transformed ancestor, just as though it had non-static
     12    position.  Therefore, this test should be offset by one pixel from the
     13    reference.'>
     14    <link rel="mismatch" 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        right: -160px;
     27        bottom: 0;
     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>