absolute-non-replaced-width-021-ref.xht (1059B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Reftest Reference</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="author" title="Daniel Schattenkirchner" href="mailto:crazy-daniel@gmx.de" /> 11 12 <style type="text/css"><![CDATA[ 13 div.green-45x120 14 { 15 background-color: green; 16 height: 45px; 17 margin-left: auto; 18 width: 120px; 19 } 20 21 div#black-stripe 22 { 23 background-color: black; 24 height: 30px; 25 margin-left: auto; 26 width: 240px; 27 } 28 ]]></style> 29 30 </head> 31 32 <body> 33 34 <p>Below, on the right edge of the page, there should be a green square. In the middle of such green square, a black horizontal stripe should be traversing it and protruding out of it toward the left. There should be no red in this page.</p> 35 36 <div class="green-45x120"></div> 37 38 <div id="black-stripe"></div> 39 40 <div class="green-45x120"></div> 41 42 </body> 43 </html>