run-in-linebox-002.xht (1103B)
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 the line box model</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/002.xml" type="application/xhtml+xml"/> 9 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#run-in" /> 10 <meta name="assert" content="A run-in element inherits (line-height) from its document tree parent"/> 11 <style type="text/css"> 12 div { font-family: monospace; } 13 .r { color: blue; display: run-in; } 14 .b { background: blue; line-height: 0; } 15 span { color: blue; } 16 </style> 17 </head> 18 <body> 19 <p>There should be a blue box below.</p> 20 <div class="r">FAIL</div> 21 <div class="b"><span> FAIL</span></div> 22 </body> 23 </html>