tor-browser

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

transform-fixed-bg-007.html (1556B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Test (Transforms): Fixed Background (transform on root)</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 a transform on the root element still leads fixed
     15    backgrounds on descendants to act as though they were scrolled
     16    backgrounds.'>
     17    <meta name="flags" content="svg">
     18    <link rel="match" href="transform-fixed-bg-ref.html">
     19    <meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-200">
     20    <style>
     21      html {
     22        transform: rotate(-90deg);
     23        transform-origin: 100px 100px;
     24        overflow: hidden;
     25      }
     26      body {
     27        margin: 0;
     28      }
     29      div {
     30        background: url(support/transform-triangle-up.svg) fixed;
     31        width: 100px;
     32        height: 100px;
     33        position: relative;
     34        left: 50px;
     35        top: 50px;
     36      }
     37    </style>
     38  </head>
     39  <body>
     40    <div></div>
     41  </body>
     42 </html>