tor-browser

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

transform-root-bg-003.html (1356B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Test (Transforms): scale(0.5) on Root Element With Background</title>
      5    <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
      6    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
      7    <meta name="assert" content="This is the same as
      8    transform-root-bg-001.html, except that it uses scale(0.5) instead of
      9    scale(-1).  It also specifies a transform-origin, because the default of
     10    50% 50% wouldn't work well with the way the reference image is constructed.">
     11    <link rel="match" href="transform-root-bg-001-ref.html">
     12    <style>
     13      html {
     14        background: url(support/transform-triangle-left.svg);
     15        transform: scale(0.5);
     16        /**
     17         * The transform-origin here has to fall between two triangles, i.e.,
     18         * at a multiple of 100px.  Otherwise after the transform, the shrunken
     19         * images won't line up with the left edge of the body, and it won't
     20         * match the ref (since the background here is positioned at the left).
     21         * We deliberately make it an odd multiple of the number of images so
     22         * it catches an IE bug; it shouldn't matter per spec
     23         */
     24        transform-origin: 300px 0;
     25      }
     26      body {
     27        margin: 0;
     28      }
     29    </style>
     30  </head>
     31  <body>
     32  </body>
     33 </html>