transforms-rotate-degree-90.html (1284B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: transform property with rotate function and one parameter</title> 5 <link rel="author" title="Jacy-Bai" href="mailto:jinxin.bai@gmail.com"> 6 <link rel="reviewer" title="Dayang Shen" href="mailto:shendayang@baidu.com"> <!-- 2013-09-03 --> 7 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property"> 8 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions"> 9 <link rel="match" href="reference/transforms-rotate-degree-90-ref.html"> 10 <meta name="assert" content="If the rotate with parameter not provided, greenRectangle will not cover redRectangle."> 11 <style type="text/css"> 12 .greenRectangle { 13 position: absolute; 14 top: 100px; 15 left: 100px; 16 width: 150px; 17 height: 100px; 18 background: green; 19 transform: rotate(90deg); 20 } 21 22 .redRectangl { 23 position: absolute; 24 top: 75px; 25 left: 125px; 26 width: 100px; 27 height: 150px; 28 background: red; 29 } 30 </style> 31 </head> 32 <body> 33 <p>The test passes if there is a green rectangle and no red.</p> 34 <div class="redRectangl"></div> 35 <div class="greenRectangle"></div> 36 </body> 37 </html>