position-static-001.xht (1567B)
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: Content laid out in normal flow when 'position' is set to 'static'</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-24 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-position" /> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#choose-position" /> 9 <link rel="match" href="position-static-001-ref.xht" /> 10 11 <meta name="assert" content="Static positioned elements are not affected by top, right, bottom, left property settings." /> 12 <style type="text/css"> 13 #div1 14 { 15 background: blue; 16 height: 2in; 17 line-height: 1.25; 18 position: relative; 19 width: 2in; 20 } 21 div div 22 { 23 background: orange; 24 bottom: 0; 25 left: 100px; 26 position: static; 27 right: 0; 28 top: 100px; 29 } 30 </style> 31 </head> 32 <body> 33 <p>Test passes if an orange stripe is above a blue rectangle and if both have the same width.</p> 34 <div id="div1"> 35 <div>Filler Text</div> 36 </div> 37 </body> 38 </html>