white-space-processing-008.xht (1398B)
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: White-space 'normal' with space adjoining linefeed</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/#white-space-phase-1" /> 8 <link rel="match" href="white-space-processing-002-ref.xht" /> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="A space before a linefeed is removed if 'white-space' is set to 'normal'." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"> 13 div 14 { 15 font-family: Ahem; 16 height: 1em; 17 margin-bottom: 3px; 18 width: 3em; 19 } 20 #div1 21 { 22 white-space: pre; 23 } 24 #div2 25 { 26 background-color: blue; 27 } 28 </style> 29 </head> 30 <body> 31 <p>Test passes if the black box below is shorter than the blue box.</p> 32 <div id="div1">XX  </div> 33 <div id="div2"></div> 34 </body> 35 </html>