transform-fixed-bg-004.html (1179B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test (Transforms): Fixed Background (with rotation and scrolling)</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='This is the same as transform-fixed-bg-002, 10 except that we also test that a rotation on a non-root element doesn't 11 affect fixed backgrounds.'> 12 <meta name="flags" content="svg dom"> 13 <link rel="match" href="transform-fixed-bg-ref.html"> 14 <meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-200"> 15 <style> 16 body { 17 margin: 0; 18 height: 5000px; 19 overflow: hidden; 20 } 21 div { 22 background: url(support/transform-triangle-down.svg) fixed; 23 width: 100px; 24 height: 100px; 25 transform: translate(50px, 150px) rotate(90deg); 26 } 27 </style> 28 </head> 29 <body> 30 <div></div> 31 <script>scroll(0, 100)</script> 32 </body> 33 </html>