absolute-non-replaced-width-017-ref.xht (986B)
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 width: 120px; 18 } 19 20 div#black-stripe 21 { 22 background-color: black; 23 height: 30px; 24 width: 240px; 25 } 26 ]]></style> 27 28 </head> 29 30 <body> 31 32 <p>Below 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 right. There should be no red in this page.</p> 33 34 <div class="green-45x120"></div> 35 36 <div id="black-stripe"></div> 37 38 <div class="green-45x120"></div> 39 40 </body> 41 </html>