run-in-linebox-001.xht (1003B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: run-in and sibling blocks</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" /> 7 <link rel="reviewer" title="Microsoft" href="http://www.microsoft.com/" /> 8 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/run-in/001.xml" type="application/xhtml+xml" /> 9 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#run-in" /> 10 <style type="text/css"> 11 .r { display: run-in; color: blue; } 12 .b { background: blue; display: block; } 13 .fail { background: red; line-height: 0; margin-top: 1em; color: white; } 14 </style> 15 </head> 16 <body> 17 <p>There should be a blue box below.</p> 18 <div class="r">FAIL</div> 19 <div class="b"></div> 20 <div class="fail"> 21 FAIL 22 </div> 23 </body> 24 </html>