transform-fixed-bg-001.html (1172B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test (Transforms): Fixed Background</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 14 scroll."'> 15 <meta name="flags" content="svg"> 16 <link rel="match" href="transform-fixed-bg-ref.html"> 17 <style> 18 body { 19 margin: 0; 20 } 21 div { 22 background: url(support/transform-triangle-left.svg) fixed; 23 width: 100px; 24 height: 100px; 25 transform: translate(50px, 50px); 26 } 27 </style> 28 </head> 29 <body> 30 <div></div> 31 </body> 32 </html>