transform-stacking-001.html (1017B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test (Transforms): Stacking, transform: scale(1)</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 tests that specifying the identity 8 transform on an element still causes it to create a new stacking context 9 (unlike transform: none).'> 10 <link rel="match" href="transform-lime-square-ref.html"> 11 <style> 12 body > div:first-child { 13 transform: scale(1); 14 } 15 body > div:first-child > div { 16 height: 100px; 17 width: 100px; 18 background: red; 19 z-index: 1; 20 position: relative; 21 } 22 body > div:last-child { 23 height: 100px; 24 width: 100px; 25 background: lime; 26 position: relative; 27 bottom: 100px; 28 } 29 </style> 30 </head> 31 <body> 32 <div> 33 <div></div> 34 </div> 35 <div></div> 36 </body> 37 </html>