tor-browser

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

transform-fixed-bg-005.html (1385B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Test (Transforms): Fixed Background (no-op transform)</title>
      5    <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
      6    <link rel="author" title="L. David Baron" href="https://dbaron.org/">
      7    <link rel="author" title="Google" href="http://www.google.com/">
      8    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
      9    <meta name="assert" content='"Fixed backgrounds on the root element are
     10    affected by any transform specified for that element. For all other
     11    elements that are effected by a transform (i.e. have a transform applied
     12    to them, or to any of their ancestor elements), a value of fixed for the
     13    background-attachment property is treated as if it had a value of scroll."
     14    This tests that adding a no-op transform to an element with a fixed
     15    background doesn&apos;t change rendering from scroll background.'>
     16    <meta name="flags" content="svg">
     17    <link rel="match" href="transform-fixed-bg-ref.html">
     18    <style>
     19      body {
     20        margin: 0;
     21      }
     22      div {
     23        background: url(support/transform-triangle-left.svg) fixed;
     24        width: 100px;
     25        height: 100px;
     26        position: relative;
     27        left: 50px;
     28        top: 50px;
     29        transform: translate(0);
     30      }
     31    </style>
     32  </head>
     33  <body>
     34    <div></div>
     35  </body>
     36 </html>