transform-applies-to-001.xht (1216B)
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: transform applied to elements with 'display' set to 'block'</title> 5 <link rel="author" title="Apple Inc." href="http://www.apple.com/"/> 6 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property"/> 7 <link rel="match" href="reference/transform-applies-to-001-ref.xht"/> 8 <meta name="assert" content="The 'transform' property applies to elements with 'display' set to 'block'."/> 9 <style type="text/css"><![CDATA[ 10 div { 11 position: relative; 12 } 13 div p { 14 position: absolute; 15 top: 0; 16 left: 0; 17 display: block; 18 } 19 #red { 20 width: 50px; 21 height: 100px; 22 background-color: green; 23 border-right: red solid 50px; 24 } 25 #test { 26 width: 100px; 27 height: 50px; 28 background-color: transparent; 29 border-top: green solid 50px; 30 transform: rotate(90deg); 31 } 32 ]]></style> 33 </head> 34 <body> 35 <p>You should see a green box. There should be no red.</p> 36 <div> 37 <p id="red"></p> 38 <p id="test"></p> 39 </div> 40 </body> 41 </html>