text-indent-overflow-003.xht (1600B)
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 with value larger than the available width with 'overflow' set to 'visible'</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#indentation-prop" /> 7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-indent-property"/> 8 <link rel="match" href="text-indent-overflow-003-ref.xht"/> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="The 'text-indent' property with a value exceeding the available width follows the 'overflow: visible' assignment." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"> 13 #div1 14 { 15 font-family: Ahem; 16 line-height: 1em; 17 width: 40em; 18 } 19 #div2 20 { 21 text-indent: 10em; 22 width: 5em; 23 } 24 #div3 25 { 26 background: blue; 27 height: 1em; 28 margin-left: 10em; 29 width: 5em; 30 } 31 </style> 32 </head> 33 <body> 34 <p>Test passes if the black box below is directly above the blue box.</p> 35 <div id="div1"> 36 <div id="div2">XXXXX</div> 37 <div id="div3"></div> 38 </div> 39 </body> 40 </html>