white-space-pre-wrap-trailing-spaces-021-ref.html (923B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Reference Test</title> 6 7 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 8 9 <style> 10 div 11 { 12 border: black solid 2px; 13 font-family: monospace; 14 font-size: 32px; 15 line-height: 1.25; /* computes to 40px */ 16 margin-bottom: 0.25em; 17 width: 16ch; 18 overflow: hidden; 19 } 20 21 span 22 { 23 background-color: yellow; 24 } 25 </style> 26 27 <p>Test passes if the characters inside each black-bordered rectangle are laid out identically and if each black-bordered rectangle does not generate a horizontal scrollbar. 28 29 <div>Lorem ipsum.<span> </span><br> 30 Dolor<br> 31 sit amet. <br> 32 consectetur</div> 33 34 <div>Lorem ipsum.<span> </span><br> 35 Dolor<br> 36 sit amet. <br> 37 consectetur</div>