pre-wrap-052.html (909B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Text: inline starting with a collapsible white space</title> 6 7 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 8 <link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-phase-2"> 9 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 11 12 <style> 13 div 14 { 15 background-color: red; 16 color: green; 17 display: inline-block; 18 font-family: Ahem; 19 font-size: 50px; 20 line-height: 1; 21 } 22 23 span#pre-wrap 24 { 25 white-space: pre-wrap; 26 } 27 </style> 28 29 <p>Test passes if there is a filled green square and <strong>no red</strong>. 30 31 <div><span id="pre-wrap">AB
</span><span> CD</span></div> 32 33 <!-- 34 35 
 == Line feed == 
 == 
 36 37 -->