scalex.html (1058B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: test scale x</title> 5 <link rel="author" title="Ebay Inc." href="mailto:xiatian@ebay.com"/> 6 <link rel="help" href="https://www.w3.org/TR/css-transforms-1/#funcdef-transform-scalex"/> 7 <link rel="match" href="scalex-ref.html"/> 8 <meta name="assert" content="scale x 2"/> 9 <style type="text/css"> 10 .container { 11 z-index: 11; 12 position: absolute; 13 height: 100px; 14 width: 100px; 15 margin-left: 500px; 16 transform: scaleX(2); 17 background-color: green; 18 } 19 20 .hidden { 21 z-index: 10; 22 background-color: red; 23 position: absolute; 24 height: 100px; 25 width: 200px; 26 margin-left: 450px; 27 } 28 </style> 29 30 </head> 31 <body> 32 <p>You should see only 1 green area, no red area.</p> 33 <div class="container"> 34 </div> 35 <div class="hidden"> 36 </div> 37 </body> 38 </html>