scale-zero-001.html (1192B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: transform property with scale function and zero values</title> 5 <link rel="author" title="Jian Zhang" href="mailto:jian.andy.zhang@gmail.com"> 6 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property"> 7 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions"> 8 <link rel="match" href="reference/scale-zero-ref.html"> 9 <meta name="assert" content="If zero value is passed to scale function, it causes the element to disappear."> 10 <style type="text/css"> 11 .greenSquare { 12 position: absolute; 13 top: 50px; 14 left: 50px; 15 width: 100px; 16 height: 100px; 17 background: green; 18 } 19 .redSquare { 20 position: absolute; 21 top: 50px; 22 left: 50px; 23 width: 100px; 24 height: 100px; 25 background: red; 26 transform: scale(0); 27 } 28 </style> 29 </head> 30 <body> 31 <p>The test passes if there is a green square and no red.</p> 32 <div class="greenSquare"></div> 33 <div class="redSquare"></div> 34 </body> 35 </html>