tor-browser

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

transform-descendant-001.html (983B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Test (Transforms): Transform Affects Descendant</title>
      5    <link rel="author" title="Clint Talbert" href="mailto:ctalbert@mozilla.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='This just tests that a transform on a
     10    container div moves its contents, not just the div itself.'>
     11    <link rel="match" href="transform-descendant-ref.html">
     12    <style>
     13      body > div {
     14        background: green;
     15        width: 100px;
     16        height: 100px;
     17      }
     18      span {
     19        background: yellow;
     20      }
     21      body > div > div {
     22        transform: translate(20px, 150px);
     23      }
     24    </style>
     25  </head>
     26  <body>
     27    <div>
     28      <div><span>span 1</span></div>
     29    </div>
     30    <span>span 2</span>
     31  </body>
     32 </html>