white-space-processing-048.xht (1286B)
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: Floats and line opportunity with 'white-space'</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#white-space-model" /> 7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-encoding"/> 8 <link rel="match" href="white-space-processing-048-ref.xht"/> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="A line breaking opportunity is not introduced with floats." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"> 13 #div1 14 { 15 font-family: Ahem; 16 white-space: normal; 17 width: 5em; 18 } 19 div div 20 { 21 color: blue; 22 float: right; 23 } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if the blue box is below the black box.</p> 28 <div id="div1"> 29 <span>XXX<div>XXX</div>XXX</span> 30 </div> 31 </body> 32 </html>