text-indent-applies-to-004.xht (1427B)
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: Text-indent application on a 'display: run-in' element</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#propdef-text-indent" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop" /> 8 <meta name="flags" content="ahem" /> 9 <meta name="assert" content="The 'text-indent' property is applied to 'display: run-in' elements." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 div 13 { 14 font: 16px/1em Ahem; 15 } 16 div div 17 { 18 display: run-in; 19 text-indent: 10em; 20 } 21 #div1 22 { 23 background: blue; 24 height: 1em; 25 margin-left: 10em; 26 width: 5em; 27 } 28 </style> 29 </head> 30 <body> 31 <p>Test passes if the black box below is directly above the blue box. (Note that the two boxes do not need to be touching.)</p> 32 <div> 33 <div>XXXXX</div> 34 </div> 35 <div id="div1"></div> 36 </body> 37 </html>